There are 3 mobile operators in morocco:
1. IAM (maroc telecom) http://www.mobileiam.ma
2. Meditel http://www.meditel.ma
3. Wana http://www.wana.ma
You can buy a prepaid sim card for national and international calls, SMS/MMS, but web access is not allowed with this type of SIM card. Prices are about 1 Euro for the SIM CARD and recharge card are avaible starting 5 Moroccan dirhams ( 0.5 Euro). Calls cost about 4dh/min (0.4 euro) and 1dh for local sms ans 3 dh for international sms.
The country code is 212.