In 1808, Napoleon invaded Spain and decided to impose his brother, José Bonaparte, as the King of Spain (1808-1810). The Criollos of New Spain found in this circumstance the opportunity to seek their independence. The chaos in Spain made the perfect excuse to rebel and yet not commit treason: many said they were loyal to Spain, not to Napoleon.
I am going to invade Spain
By 1810, Spanish America could look to other nations to see revolutions and their results. The American Revolution (1765-1783) was seen by many in the Americas as a good example of throwing off European rule and replacing it with a more fair and democratic society. Later, many ideas of the Constitution were borrowed from the United States, even though a difference in ideology regarding slavery in the US would cause friction between the two countries in the future.
Americas as a good example of throwing off European rule and replacing it with a more fair and democratic society.
Eleven years after the outbreak of the Mexican War of Independence, Spanish Viceroy Juan de O’Donojú signs the Treaty of Córdoba in 1821, which approves a plan to make Mexico an independent constitutional monarchy.
We have one the war after eleven years of fighting