Actually, Mexico City is not in the tropics. The Tropic of Cancer passes north of the city, placing it in the subtropics. However, its high elevation (~2,240 meters / 7,350 feet) is the primary reason for its cooler climate, which can include occasional freezing temperatures.