Constituent Congress of Peru, 1822 ratified in succession to the former presidents of the Republic of Peru: José de la Riva Agüero and José Bernardo de Tagle (better known as the Marquis of Torre Tagle). After the proclamation of the independence of Peru, the ancient capital of the Viceroyalty of Peru, Lima, on July 28, 1821, General José de San Martín assumed command of the military political free departments of Peru, under the title protector, according to the decree of August 3, 1821. San Martín was the one who gave the state its first Peruvian flag, anthem, currency, and its administration and its first primitive
Peru–Bolivian Confederation where he died. Peru–Bolivian Confederation The Peru–Bolivian Confederation was a short-lived state that existed in South America between 1836 and 1839. The country was a loose confederation between the states of Peru, divided into the Republic of North Peru and the Republic of South Peru, and Bolivia, with the capital located in Tacna. The Peru–Bolivian Confederation's formation was personally influenced by Marshal Andrés de Santa Cruz, the President of Bolivia, who served as the first and only head of state under the title “Supreme Protector”. The Peru–Bolivian Confederation was opposed by neighboring countries from its inception, particularly Chile and Argentina,