 Spain was invaded by France and the Spanish king deposed and a usurper French king imposed.Like others in colonial Spanish America, New Spain's viceroy José de Iturrigaray, who was sympathetic to creoles, sought to create a legitimate government during the situation.He was overthrown by powerful Peninsular Spaniards and hard-line Spaniards clamped down on any notion of Mexican autonomy.