June in Marrakesh, Morocco, brings average daily highs of 33°C and overnight lows of 18°C in the 2016–2025 historical record. Allow room to shorten long outdoor plans when the day's forecast is hotter than you want. A schedule with easy breaks and less travelling between stops will give you more choices.
In the record, at least 1 mm of rain or snow falls on 2 of 30 days on average, a daily chance of 6%. Rain has been relatively infrequent in this record, which leaves more scope for an outdoor plan. Still keep an alternative for a wet day: a low monthly average cannot tell you when the rain will arrive.
The calculated day length, sunrise to sunset, averages about 14 hours. Sunshine averages 13 hours a day. The longer daylight window gives you more choice about when to be outside; it does not mean every part of the day will be sunny. Sunshine is a separate measure, and those hours need not arrive in one uninterrupted stretch.
For a culture-focused visit, group the places you want to see into manageable areas, with time between stops. Check each venue's opening dates before fixing the order. If food is a reason for the trip, leave time around meals rather than filling every gap with another journey. Check the places you choose for current opening hours.
July has an average daily high of 37°C, 4°C higher than June. Its historical rain-day chance is 6%, compared with 6% this month. If your dates are flexible, compare those trade-offs with the kind of days you want. Neither set of averages predicts the conditions of one particular holiday.