Answer: The invasion of Spain by Napoleon
Step-by-step explanation:
Answering the question by the user in the first comment.
As was the case in most of their colonies, the Europeans practised classism in Latin America and perpetuated a social order where various classes of people were placed in positions on a social hierarchy based on race.
A lot of people resented this and began to spread revolutionary ideas around the continent but could take no real action as they would be repressed by the Spanish army.
This changed in 1808 when Napoleon invaded Spain. To the Latin American revolutionaries, this showed that Spain had become weak and so they took advantage of the situation and launched widespread rebellion against their Spanish rulers.