During this period the Church faced colonial abuses from the Portuguese and Spanish governments. In South America, the Jesuits protected native peoples from enslavement by establishing semi-independent settlements called reductions. Pope Gregory XVI, challenging Spanish and Portuguese sovereignty, appointed his own candidates as bishops in the colonies, condemned slavery and the slave trade in 1839 (papal bull In supremo apostolatus), and approved the ordination of native clergy in spite of government racism.[176]