What is the capital of Morocco? on Jul 17, 2023 Published in Geography Trivia Rabat. Morocco is south of Spain and controls part of the Strait of Gibraltar connecting the Mediterranean to the Atlantic.