Rabat is in Africa.
Morocco . `` The Western Kingdom '' ; ⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵍⵎⵖⵔⵉⴱ ) , is a sovereign country located in the Maghreb region of North Africa . Rabat . Once a reputed corsair haven , Rabat served as one of the many ports in North Africa for the Barbary pirates , who were particularly active from the 16th through the 18th centuries .