By the end of the eighteenth century, Spanish and Portuguese power waned on the global scene as other European powers took their place, notably Britain and France. Resentment grew among the majority of the population in Latin America over the restrictions imposed by the Spanish government, as well as the dominance of native Spaniards (Iberian-born "Peninsulares") in the major social and political institutions. Napoleon's invasion of Spain in 1808 marked a turning point, compelling Criollo elites to form juntas that advocated independence. Also, the newly independent Haiti, the second oldest nation in the New World after the United States, further fueled the independence movement by inspiring the leaders of the movement, such as Miguel Hidalgo y Costilla of Mexico, Simón Bolívar of Venezuela and José de San Martín of Argentina, and by providing them with considerable munitions and troops.