The death penalty is not against Catholic teaching. Pope John Paul II opined that as matter of prudential judgment that the conditions for it were rarely met. But he did not proclaim that it was against Catholic dogma.
The Inquisition and the Dominicans in Mexico and the Ametican South west routinely executed Indians
In Peru, thousands were sentenced to death and executed
Both Jews and Moors that would not convert were burned at the stake. Ditto French Christians that were declared heritics