Mexico City (Ciudad de México, sjuˈða(ð) ðe ˈmexiko; abbr.: CDMX; Nahuatl: Āltepētl Mēxihco ɑːl'tɛpeːt͡ɬ meːʃi'ko) is the capital and largest city of Mexico, and the most populous city in North America. One of the world's alpha cities, it is located in the Valley of Mexico within the high Mexican central plateau, at an altitude of . The city has 16 boroughs or demarcaciones territoriales, which are in turn divided into neighborhoods or colonias.
The 2020 population for the city proper was 9,209,944, with a land area of . According to the most recent definition agreed upon by the federal and state governments, the population of Greater Mexico City is 21,804,515, which makes it the sixth-largest metropolitan area in the world, the second-largest urban agglomeration in the Western Hemisphere (behind São Paulo, Brazil), and the largest Spanish-speaking city (city proper) in the world. Greater Mexico City has a GDP of $411 billion in 2011, which makes it one of the most productive urban areas in the world. The city was responsible for generating 15.8% of Mexico's GDP, and the metropolitan area accounted for about 22% of the country's GDP. If it were an independent country in 2013, Mexico City would be the fifth-largest economy in Latin America.
Mexico's capital is both the oldest capital city in the Americas and one of two founded by Indigenous people. The city was originally built on a group of islands in Lake Texcoco by the Mexica (Aztecs) around 1325, under the name Tenochtitlan. It was almost completely destroyed in the 1521 siege of Tenochtitlan and subsequently redesigned and rebuilt in accordance with the Spanish urban standards. In 1524, the municipality of Mexico City was established, known as México Tenochtitlán, and as of 1585, it was officially known as Ciudad de México (Mexico City). Mexico City was the political, administrative, and financial center of a major part of the Spanish colonial empire. After independence from Spain was achieved, the federal district was created in 1824.