 Inspired by the American and French Revolutions, Mexican insurgents saw an opportunity for independence in 1808 when Napoleon invaded Spain and the Spanish king Charles IV was forced to abdicate.Napoleon placed his brother Joseph Bonaparte on the Spanish throne.For Spain and the Spanish Empire, this turn of events created a crisis of legitimacy of rule.