Answer:
The Napoleonic Wars in Europe prompted a number of Spanish colonies in Latin America to declare independence.
This includes countries such as Argentina, Chile, Peru, Mexico, and Bolivia. The wars allowed the colonies to gain the opportunity to gain independence, as the Spanish Empire was weakened by the wars and was unable to maintain control over its colonies.
Revolutionary leaders such as Simon Bolivar, Jose de San Martin, and Bernardo O'Higgins all played a role in leading the independence movements in their respective countries.