Morocco: Morocco, mountainous country of western North Africa that lies directly across the Strait of Gibraltar from Spain. Morocco’s largest city and major Atlantic Ocean port is Casablanca. The capital, Rabat, lies a short distance to the north on the Atlantic coast.