qnli question: When was Mexico City officially founded by the Spanish? sentence: In 1524, the municipality of Mexico City was established, known as México Tenochtitlán, and as of 1585 it was officially known as Ciudad de México (Mexico City).