Fighting soon broke out between juntas and the Spanish colonial authorities, with initial victories for the advocates of independence. Eventually these early movements were crushed by the royalist troops by 1812, including those of Miguel Hidalgo y Costilla in Mexico and Francisco de Miranda in Venezuela. Under the leadership of a new generation of leaders, such as Simón Bolívar “The Liberator”, José de San Martín of Argentina, Bernardo O’Higgins of Chile, and other Libertadores in South America, the independence movement regained strength, and by 1825, all Spanish America, except for Puerto Rico and Cuba, had gained independence from Spain. Brazil achieved independence with a constitutional monarchy established in 1822. In the same year in Mexico, a military officer, Agustín de Iturbide, led a coalition of conservatives and liberals who created a constitutional monarchy, with Iturbide as emperor. This First Mexican Empire was short-lived, and was followed by the creation of a republic in 1823.