The newly independent state was known as the State of Mexico
After New Spain achieved independence from the Spanish Empire , said territory came to be known as the State of Mexico , with the new country being named after its capital : the City of Mexico , which itself was founded in 1524 on top of the ancient Mexica capital of Mexico-Tenochtitlan .
Mexico