Viceroyalty of Peru Viceroyalty of Peru The Viceroyalty of Peru () was a Spanish imperial provincial administrative district, created in 1542, that originally contained most of Spanish-ruled South America, governed from the capital of Lima. The Viceroyalty of Peru was one of the two Spanish Viceroyalties in the Americas from the sixteenth to the eighteenth centuries. The Spanish did not resist the Portuguese expansion of Brazil across the meridian established by the Treaty of Tordesillas. The treaty was rendered meaningless between 1580 and 1640 while Spain controlled Portugal. The creation during the 18th century of Viceroyalties of New Granada and Río de la
Viceroyalty of Peru on July 21, 1821. The independence of Peru was proclaimed on July 28, 1821. Viceroy José de la Serna e Hinojosa, still in command of a sizable military force, retired to Jauja, and later to Cusco. On July 26, 1822, San Martín and Simón Bolívar met in Guayaquil to define a strategy for the liberation of the rest of Peru. The meeting was secret, and exactly what occurred is not known. However, afterwards San Martín returned to Argentina while Bolívar prepared to launch an offensive against the remaining royalist forces in Peru and Upper Peru (Bolivia). In September 1823 Bolívar