Mexico City is not in any state. It functions as its own federal entity, separate from Mexico's 31 states.

Unique Status

Mexico City, officially Ciudad de México (CDMX) , gained this distinct position in 2016 when it transitioned from the Federal District to a federal entity with state-like autonomy. This setup mirrors Washington, D.C., in the U.S., allowing independent governance on matters like urban planning while serving as Mexico's capital.

Historical Shift

Before 2016, it was the Federal District (D.F.) , but reforms granted greater self-rule without full statehood—due to a constitutional clause tying it to the capital role. Surrounding areas like the State of Mexico (e.g., Toluca, Ecatepec) encircle it on three sides, but CDMX stands alone administratively.

Key Facts

  • Divided into 16 alcaldías (boroughs) for local management under centralized city authority.
  • Population hub: Over 9 million in the city proper, part of a massive metro area.
  • No state affiliation: Often confuses visitors, as it's one of Mexico's 32 federal entities.

TL;DR: Mexico City isn't in a state—it's its own federal entity (CDMX) since 2016.

Information gathered from public forums or data available on the internet and portrayed here.