What was ignited as a result of the Enlightenment and Napoleon Bonoparte’s conquest of Spain?

The Mexican-American War
A Revolt by the Mexican People to gain independence from Spain

The Spanish American Wars of Independence.