Kammala wannan jumlar: Daya daga cikin tashin hankali na farko da suka yi tambaya game da ikon Mutanen Espanya a kan Viceroyalty na Peru shine
Tawaye na Tupac Amaru II a cikin 1780. Sojojin Royalist sun murkushe wannan tawaye na farko, amma zai kafa tushe don ƙarin tawaye. Daga baya, tayar da hankali kamar Tacna Rebellion na 1811 da Cuzco Rebellion na 1814 sun kara yawan jama'a. Saboda ikon mulkin mallaka na Mutanen Espanya a Amurka ya fi mayar da hankali ne a cikin Viceroyalty na Peru, sa hannun sojojin kasashen waje ya zama dole don juyin juya halin ya yi nasara. The Liberating Expedition of Peru, wanda Janar José de San Martin ya ba da umurni, yana ɗaya daga cikin irin wannan aikin. Sojojin Martin sun yi nasarar mamaye babban birnin Lima a 1820, kuma an ayyana 'Yancin Peruvian a ranar 28 ga Yuli, 1821. A shekara ta 1824, an kammala aiwatar da 'yancin kai tare da taimakon Simón Bolívar da sanya hannu kan Bayar da Ayachucho a 1824.