Indicative rates, not an offer. Averaged from real buy and sell prices.
The Moroccan dirham (MAD) is a closed currency that may be taken out of the country only in limited amounts, so most visitors exchange on arrival; euros are the most exchanged foreign currency, followed by US dollars and British pounds. Casablanca and Marrakesh have the most offers, followed by Rabat, Tangier, Fez and Agadir.
Banks and licensed bureaux de change are common in city centres and medinas and generally offer similar rates. In Morocco, P2P offers let you exchange US dollars for Moroccan dirhams directly with another person, in cash or by transfer.
Below are exchange offices from open sources.