Mexico
In 1810 the Mexican priest Miguel Hidalgo started the Mexican war of independence. In 1821 the Spanish finally retreated and Mexico became independent. The first leader of independent Mexico was Agustin de Iturbide. He set up the First Mexican Empire and became emperor. But the Mexicans were not happy with him, and in 1823 the country became a republic.