The best time to visit Peru is generally May to September, especially if you’re planning to see Machu Picchu, because it’s the dry season with clearer skies and better trekking conditions; I’d personally aim for May or September since you get good weather but fewer crowds compared to peak months like June–August.