Administrative divisions of Mexico
The United Mexican States () is a federal republic composed of 32 Federal Entities: 31 states and Mexico City, an autonomous entity. According to the Constitution of 1917, the states of the federation are free and sovereign in all matters concerning their internal affairs. Each state has its own congress and constitution. Federal entities of Mexico. States. Roles and powers of the states. The states of the Mexican Federation are free, sovereign, autonomous and independent of each other. They are free to govern themselves according to their own laws; each state has a constitution that cannot  contradict the federal constitution, which covers issues of national competence. The states cannot make alliances with other states or any independent nation without the consent of the whole federation, except those related to defense and security arrangements necessary to keep the border states secure in the event of an invasion. The political organization of each state is based on a separation of powers in a congressional system: legislative power is vested in a unicameral congress (the federal congress has two chambers), executive power is independent of the legislature and vested in a governor elected by universal suffrage, and judicial  power is vested in a Superior Court of Justice. Since the states have legal autonomy, each has its own civil and penal codes and judicial body. In the Congress of the Union, the federative entities (the states) are each represented by three senators. Two are elected by universal suffrage on the principle of relative majority and one is assigned to the party that obtains the largest minority. In addition, the federation makes up a constituency in which 32 senators are elected by the method of proportional representation. Federal Deputies, however, do not represent the states, but rather the citizens themselves . The Chamber of Deputies and the Senate together comprise the Congress of the Union. Internal organization of states. The states are internally divided into municipalities. Each municipality is autonomous in its ability to elect its own council. A council is headed by a mayor who is elected every three years. Each municipality has a council composed of councilors in terms of population size. In most cases, the council is responsible for providing all utilities required for its population. This concept, which arises from the Mexican Revolution, is known as a "free municipality". As of January 2021, there are 2,454 municipalities  in Mexico. The state with the highest number of municipalities is Oaxaca, with 570, and the state with the lowest number is Baja California Sur, with only five. Mexico City. Mexico City is the capital of the United Mexican States. It had special status as a federal district until January 2016 and was originally called "Distrito Federal". Mexico City was separated from the State of Mexico, of which it was the capital, on November 18, 1824, to become the capital of the federation. As such, it belonged not to any state in particular but to all of them and to  the federation. Therefore, the president of Mexico, who represented the federation, designated its head of government, previously referred to as the regent ("regente") or head of department ("jefe del departamento"). However, the Federal District received more autonomy in 1997, and its citizens were then able to elect their chief of government for the first time. In 2016, the Mexican Congress approved a constitutional reform eliminating the federal district and establishing Mexico City as a fully autonomous entity on par with the states. However, unlike the other states of the Union, it would receive funds for education and health. When full  autonomy was granted, Mexico City adopted its own constitution (it previously had only an organic law, the Statute of Autonomy) and its boroughs expanded their local government powers. Internal divisions of Mexico City. Mexico City is divided into 16 boroughs, officially designated as "demarcaciones territoriales" or colloquially known as "alcaldías" in Spanish. Headed by a mayor, these boroughs kept the same territory and name as the former "delegaciones". Self-determination of indigenous peoples. The second article of the constitution recognizes the multicultural composition of the nation, which is founded upon the indigenous peoples. The government grants them the right of  self-determination and autonomy. According to this article, the indigenous peoples are granted The nation commits to and demands the constituent states and municipalities to promote the economic and social development of the indigenous communities, as well as an intercultural and bilingual education. According to the General Law of Linguistic Rights of the Indigenous Peoples, the nation recognizes 68 indigenous languages as "national languages", with the same validity as Spanish in the territories in which they are spoken. The indigenous peoples are entitled to request public services in their languages. History. Constitutional empire. On September 27, 1821, after three centuries  of Spanish rule, Mexico gained independence. The Treaty of Córdoba recognized part of the Viceroyalty of New Spain as an Independent Empire – "monarchist, constitutional and moderate". The new country named itself the Mexican Empire. The morning after the Army of the Three Guarantees entered Mexico City on September 28, 1821, Agustín de Iturbide ordered the Supreme Provisional Governmental Junta (September 1821 – February 1822) to meet to elect a president of the Imperial Regency and to issue a declaration of independence for the new nation. Iturbide was elected president of the Regency, and that afternoon the members of the Regency and  the Supreme Junta signed the Declaration. A minority of the Constituent Congress, looking for stability, elected Agustín de Iturbide as emperor. On July 21, 1822, Iturbide was crowned Emperor of Mexico. However, the "Constitutional Empire" quickly demonstrated the incompatibility of its two main parts: the Emperor and the Constituent Congress. The deputies were imprisoned just for expressing their opinions, and eventually Iturbide decided to dissolve the Congress and instead establish a National Board. The lack of a legitimate legislature, the illegitimacy of the Emperor, and the absence of real solutions to the nation's problems increased revolutionary activity. Antonio López  de Santa Anna proclaimed the Plan of Casa Mata, to which later joined Vicente Guerrero and Nicolás Bravo. Iturbide was forced to reestablish the Congress and, in a vain attempt to save the order and keep the situation favorable to his supporters, he abdicated the crown of the empire on March 19, 1823. Congress nullified the designation of Iturbide and therefore the recognition of the abdication. It deemed the coronation of Iturbide to have been a logical mistake in consummation of Independence. The dissolution of the Empire was the first political realignment of independent Mexico. Federal republic. After the fall  of the Empire, a triumvirate called the Supreme Executive Power was created. The provisional government created the Federal Republic, and it was in effect from April 1, 1823, to October 10, 1824. Unrest in the provinces was widespread. On May 21, 1823, The Founding Plan of the Federal Republic was enacted. Its sixth article stated, "The component parts of the Republic are free, sovereign and independent States in that which touches internal administration and government". Most of the "Free States", which were invited to form the Federal Republic, joined the Union, except for the former Captaincy General of Guatemala, which  formed their own Federal Republic. On January 31, 1824, the decree to create a Constitutive Act of the Mexican Federation was issued, which incorporated the basic structure of the Federal Republic. It was determined that the criteria for inviting states to the federation should be that they "...not be so few that through expansion and wealth in a few years they be able to aspire to constitute themselves as independent nations, breaking the federal bond, nor so many that through lack of manpower and resources the system should come to be unworkable." Between 1823 and 1824, some of the "Free  States" created their own constitutions, and others had already installed a Constituent Congress. Special cases were those of Yucatán, which on December 23, 1823, decided to join the federation but as a Federated Republic, and Chiapas, which decided by referendum to join the federation on September 14, 1824. On October 4, 1824, the Federal Constitution of the United Mexican States of 1824 was enacted. The constitution officially created the United Mexican States. The country was composed of 19 states and 4 federal territories. After the publication of the constitution, on November 18, the Federal District was created. On November 24 , Tlaxcala, which had retained a special status since the colonial era, was incorporated as a territory. On October 10, 1824, Guadalupe Victoria took office as the first President of Mexico. Centralist republic. The political structure of the Republic was amended by a decree on October 3, 1835, when the centralist system was established. The constituent states of the Republic lost their freedom, autonomy, independence, and sovereignty by being totally subordinated to the central government. However, the territorial division itself was the same, as the text of Article 8 of the Law determined: The national territory is divided into departments, on  the basis of population, location and other leading circumstances: its number, extension and subdivisions, would be detailed by constitutional law. The Seven Constitutional Laws () were promulgated on December 30, 1836. The 1st article confirmed the decree of the law October 3, 1835; the Republic would be divided into departments, these in districts and the districts in parties. The 2nd article posited that the division of the Republic into departments would be under a special law with constitutional character. On December 30, 1835, a transitory decree was added to the Seven Laws. The decree stated that the territory of Tlaxcala and  the Federal District would become a part of the Department of Mexico. The territories of Alta and Baja California would form the department of the Californias. Coahuila y Tejas would be divided into two departments. Colima would form part of Michoacán, and Aguascalientes would be declared a department. This period of political instability caused several conflicts between the central government and the entities of the country, and there were rebellions in several states: On September 11, 1842, the region of Soconusco joined Mexico as part of the department of Chiapas. Restoration of the Republic and Second Empire. The Federal Republic  was restored by the interim president José Mariano Salas on August 22, 1846. The state of Guerrero was provisionally erected in 1849, on the condition that it be approved by the legislatures of the states of México, Puebla and Michoacán, whose territories would be affected. On February 5, 1857, the Federal Constitution of the United Mexican States of 1857 was enacted. In 1864, however, after the French intervention, the conservative Mexicans restored the constitutional monarchy, known as the Second Mexican Empire, led by the emperor Maximilian of Habsburg and supported by the French army of Napoleon III. The Empire was  deposed in 1867 by the republican forces of Benito Juárez and the Federal Republic was restored again under the Constitution of 1857. The Political Constitution of the United Mexican States of 1917 was the result of the Mexican Revolution. The third Constitution of Mexico confirmed the federal system of government that is currently in effect.