Moroccan internet cafes are common, efficient and cheap (Dh5 to Dh10 per hour), usually with reasonable connection speeds.
Two irritants for many travellers are the widespread French and Arabic (nonqwerty) keyboards, and Moroccan men’s common use of internet cafes to view pornographic websites and similar.
Wi-fi is widely available in midrange and top-end accommodation and in many of the better budget options. It is slowly becoming more widespread in destinations that host lots of foreigners.
If you’re bringing a laptop, check the power-supply voltage and bring a universal adapter. USB modems are widely available from mobile-phone shops, and cost around Dh100 for one month's internet access. Buy them at a phone shop from Maroc Telecom, Meditel or Inwi (ID is required – take your passport).