ISO 3166-2:MX is the entry for Mexico in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) of all countries coded in ISO 3166-1.
Currently for Mexico, ISO 3166-2 codes are defined for federative entities including 31 states and Mexico City. Since an amendment of the Constitution of Mexico in 2016, Mexico City, the country's capital city, has been granted special status equal to a state.
Each code consists of two parts, separated by a hyphen. The first part is MX, the ISO 3166-1 alpha-2 code of Mexico. The second part is three letters.