Agustín de Iturbide, full name Agustín Cosme Damián de Iturbide y Arámburu and also known as Augustine of Mexico, was a Mexican army general and politician. During the Mexican War of Independence, he built a successful political and military coalition that took control in Mexico City on 27 September 1821, decisively gaining independence for Mexico. After securing the secession of Mexico from Spain, Iturbide was proclaimed president of the Regency in 1821; a year later, he was proclaimed Emperor of Mexico, reigning briefly from 19 May 1822 to 19 March 1823. In May 1823 he went into exile in Europe. When he returned to Mexico in July 1824, he was arrested and executed. He designed the Mexican flag.