You can visit Machu Picchu all year round. However, the driest months are May to October: something to keep in mind if you’re planning on trekking to the city.