Peru's independence was proclaimed in 1821.

An excerpt from the article 43 facts about Peru

Anti-Spanish uprisings also broke out in neighboring countries under the command of the Argentinian Jose de San Martin and the Venezuelan Simon Bolivar. It was Jose de San Martin who captured Lima in 1821 led to the proclamation of independent Peru. Peru gained full independence in 1824 after the victorious Battle of Ayacucho, where the Spanish were defeated by Simon Bolivar's subordinate, General Antonio de Sucre.