Flag of Peru which joined Bolivia to form the Peru–Bolivian Confederation. The South was formed first, thus adopting a new flag: a red vertical band on the left, with a golden sun and four small stars above (representing Arequipa, Ayacucho, Cuzco and Puno, the four groups of the republic), and the right side divided into an upper green band and a lower white one. The North kept the currency and all ---- of the dissolved Peru, including its flag. The flag of the Peru-Bolivian Confederation showed the coats of arms of Bolivia, South and North Peru, from left to right and slanted at
Protectorate of Peru independence of Peru by José de San Martín on July 28, 1821. During the Peninsular War (1807–1814) central authority in the Spanish Empire was lost and many regions established autonomous juntas. The viceroy of Peru, José Fernando de Abascal y Sousa was instrumental in organizing armies to suppress uprisings in Upper Peru and defending the region from armies sent by the juntas of the Río de la Plata. After success of the royalist armies, Abascal annexed Upper Peru to the viceroyalty, which benefited the Lima merchants as trade from the silver-rich region was now directed to the Pacific. Because of