Mexican War of Independence who then made his elder brother Joseph king. The same year, the ayuntamiento (city council) of Mexico City, supported by viceroy José de Iturrigaray, claimed sovereignty in the absence of the legitimate king. That led to a coup against the viceroy; when it was suppressed, the leaders of the movement were jailed. Despite the defeat in Mexico City, small groups of rebels met in other cities of New Spain to raise movements against colonial rule. In 1810, after being discovered, Querétaro conspirators chose to take up arms on September 16 in the company of peasants and indigenous inhabitants of Dolores
Antonio López de Santa Anna enough to send him to school. In June 1810, the 16-year-old Santa Anna joined the Fijo de Veracruz infantry regiment as a cadet against the wishes of his parents, who wanted him to pursue a career in commerce. In September 1810, secular cleric Miguel Hidalgo y Costilla rebelled against Spanish rule, sparking a spontaneous mass movement in Mexico's rich agricultural area, the Bajío. The Mexican War of Independence was to last until 1821, and Santa Anna, like most creole military men, fought for the crown against the mixed-raced insurgents for independence. Santa Anna's commanding officer was José Joaquín de Arredondo,