In the Casta System of Spanish America, a criollo was a person of acknowledged Spanish ancestry born in the New World. (The same word has other meanings elsewhere; in the French and British Caribbean and Louisiana, 'creole' could describe anyone or anything born locally, including people of African descent.)
Creoles were the colonial upper class. They owned the great haciendas, the silver mines of Viceroyalty of New Spain and Peru, the merchant houses, and many enslaved people. They filled the town councils, the universities, the legal profession, and the ranks of the clergy. They regarded themselves as the heirs of the Conquistadors and the natural leaders of their homelands, and in practice many had some indigenous or African ancestors, which money and reputation could obscure.
What they lacked was the top tier of power. The crown preferred Peninsulares, men born in Spain, as viceroys, high-court judges, and bishops, on the theory that officials without local ties would be more loyal. For much of the seventeenth and early eighteenth centuries the rule was softened by the sale of offices, which let wealthy creoles buy their way onto the courts. Then the Bourbon reforms of the later 1700s reversed course. Madrid sent a new wave of peninsular administrators, raised taxes, tightened trade rules under Mercantilism, and expelled the Jesuits (Society of Jesus), many of them creole teachers. Creoles felt demoted in their own countries.
Their position was double-edged. They resented Spaniards above them and feared the mestizo, indigenous, and Black majorities below, a fear sharpened by the Rebellion of Túpac Amaru II and the Haitian Revolution. When Napoleon's invasion of Spain in 1808 removed the legitimate king, creole councils claimed the right to govern. Creole leaders such as Simón Bolívar and José de San Martín then led the Latin American Wars of Independence, drawing on The Enlightenment ideas. Independence replaced peninsular officials with creole ones and left the social hierarchy largely intact.