June is warm and bright in the capital, but the Atlantic keeps it far gentler than the baking interior. Daytime highs around 25°C, cooled by a steady ocean breeze, make Rabat one of the most comfortable Moroccan cities to be in as summer begins. Mornings can start with a coastal mist that burns off to clear skies, and the long evenings are warm and easy — ideal for the riverfront, the Oudayas ramparts and dinner by the medina walls.
This is often Mawazine season: Africa's vast music festival frequently runs into June, with dates that vary each year, filling the capital with concerts and crowds. If you're travelling for the festival, confirm the dates and book accommodation well ahead; if not, simply check whether your visit overlaps. Either way, June's reliable warmth and ocean breeze make the city pleasant for sightseeing throughout the day, unlike the inland furnace of Marrakech or Fes.
June is a smart month for travellers who want summer warmth without summer heat. Rabat's maritime climate makes it a natural cool-by-comparison base, easily paired with Casablanca down the coast and the imperial inland of Meknes and Volubilis. With dry, bright weather and that tempering Atlantic air, the capital is a comfortable, characterful place to begin or anchor a Moroccan summer trip.