Mexico City is the capital of a federal republic.
Mexico ( México , [ ˈme.xi.ko ] , modern Nahuatl ) , officially the United Mexican States ( [ Estados Unidos Mexicanos , links = no ] , ) , is a federal republic in the southern portion of North America . Mexico is a federation comprising 31 states and a federal district that is also its capital and most populous city . Mexico City , or the City of Mexico ( Ciudad de México , [ sjuˈða ðe ˈmexiko ] ; abbreviated as `` CDMX '' ) , is the capital and most populous city of Mexico .