Since Peru has a remarkably diverse geography, the climate can vary by region.
Generally, May through October is the dry season, November through April is the rainy season.
As the vast majority of travellers visit Machu Picchu in the Andean highlands, the best time to visit Peru is the dry and cold season from May to November.