Bolívar's military campaign in Peru primarily aimed to free the region from Spanish rule by expelling the Spanish army. His efforts were part of a broader initiative to secure independence for Latin American countries. Establishing a stable government was also a key focus of his campaign. ;