Built on the ruins of the Aztec capital Tenochtitlan, which the Spanish conquered in 1521, Mexico City sits in a high valley at 2,240m surrounded by volcanoes. It is the oldest capital in the Americas and home to the largest number of museums in the world after London. The ancient Aztec Templo Mayor lies excavated in the shadow of the Metropolitan Cathedral in the Zocalo.
Nights sit around 13°C and afternoons around 23°C.
Mexico City barely changes season, but the day does: afternoons reach 24°C and nights fall to 12°C.
Rain is spread through the year — about 847 mm in total, from 176 mm in August down to 5 mm in December — so no single month is a washout.
Wind is rarely an issue; most months sit between calm and a light breeze. Air quality is worth watching: May averages an AQI of 86, while September clears to 71.
Days stretch to about 13.2 hours of light in June and shrink to 10.8 in December — something to weigh if you work to a fixed timezone.
No month in Mexico City matches what you're after, so come for the place rather than the weather. Expect fast internet (168 Mbps) and a moderate cost of living (about €1100 a month).
Affiliate links: if you book through them I earn a small commission, at no extra cost to you.