interventionist during the remainder of the conflict, Upper Peru defeated further military campaigns, and the Banda Oriental would be captured by William Brown during renewed hostilities. The national organization, either under a centralized government located in Buenos Aires or as a federation, began the Argentine Civil Wars as well, with the conflicts of Buenos Aires and José Gervasio Artigas.
The Argentine Declaration of Independence was issued by the Congress of Tucumán in 1816. Martín Miguel de Güemes kept royalists at bay on the North, while José de San Martín made the Crossing of the Andes, securing the independence of Chile. With the Chilean navy at his disposal he then took the fight to the royalist stronghold of Lima. San Martín's military campaigns complemented those of Simón Bolívar in Gran Colombia and led to the independent's victory in the Spanish American wars of independence.
The 1820 Battle of Cepeda, fought between the Centralists and the Federalists, resulted in the end of the centralized national authority. A new centralist constitution was enacted in 1826, during the War with Brazil, and Bernardino Rivadavia was appointed the first President of Argentina. It was rejected by the provinces, forcing Rivadavia to resign. The new governor Manuel Dorrego was deposed and executed by Juan Lavalle, which exacerbated the civil war. Juan Manuel de Rosas organized the resistance against Lavalle and restored the deposed authorities. The provinces then reorganized themselves as a loose confederation of provinces that lacked a common head of state. They would instead delegate some important powers to the governor of Buenos Aires Province, such as debt payment or the management of international relations.
Juan Manuel de Rosas ruled from 1829 to 1832, and from 1835 to 1852. During his first term he convened the Federal pact and defeated the Unitarian League. After 1835 he received the "Sum of public power". He faced several a