As a member of the Maghrebi Arabic grouping of dialects, Moroccan Arabic is similar to the dialects spoken in Mauritania, Algeria, Tunisia, and Libya (and also Maltese).
Moroccans learn Standard Arabic as a language.