"Mexico" derives from Nahuatl Mēxihco — the name of the Aztec capital Tenochtitlan (also called Mēxihco-Tenōchtitlan). The etymology remains debated among linguists and historians.
Metztli (moon) + xīctli (navel/center) + -co (locative suffix) → "in the moon's center." Tenochtitlan sat on an island in Lake Texcoco; at night, the lake's reflection created a mirror-moon effect with the city at its center.
Mexitli (secret name of patron god Huitzilopochtli, "hummingbird of the south") + -co → "place dedicated to Mexitli." The Mexica (Aztecs) considered themselves "people of Mexitli."
Mēxihcah (the Mexica people) + -co → "homeland of the Mexica." References their migration from mythical Aztlan ("place of herons/whiteness") — the Aztec origin narrative.
Nahuatl (still spoken by 1.5M+) contributed countless Mexican Spanish words: chocolate, tomato, avocado, coyote, chili, atlatl, shack. The name "Mexico" itself is the most enduring Nahuatl export.