 Rabat is located on the Atlantic Ocean at the mouth of the river Bou Regreg, opposite Salé, the city's main commuter town.Rabat was founded in the 12th century by the Almohad ruler Abd al-Mu'min as a military town.The city steadily grew but went into an extended period of decline following the collapse of the Almohads.