Mexican GeneralsThe Mexican War of Independence ended the rule of Spain in the territory of New Spain. The move for independence was inspired by the Age of Enlightenment and the American and French Revolutions. Social and political changes and a deep economic crisis in New Spain caused discomfort among the elite.