Rabat. Rabat is the capital city of Morocco, located on the northwestern coasts of the Atlantic Ocean. Rabat is the country's seventh-largest city with a population of 515,619 (2024) and the second largest metropolitan area after Casablanca, with a population of approximately 2.1 million (2025). It is also the capital city of the Rabat-Sal??-K??nitra administrative region. Rabat is located on the Atlantic Ocean at the mouth of the river Bou Regreg, opposite Sal??, the city's main commuter town.