Les recherches et fouilles archéologiques effectuées à Rabat et sa région, montrent que le site a attiré depuis la lointaine antiquité des peuples divers, notamment les Phéniciens et les Carthaginois qui y installèrent leurs comptoirs de commerce. Les Romains qui leur ont succédé fondèrent un port à Salé, ville limitrophe. Mais ce sont les Almohades, et en particulier leur chef Abdelmoumen, qui fondèrent Rabat vers 1150, et en firent un " Ribat ", forteresse appelée "Ribat Al Fath", "Camp de la victoire", qui servait d'arrière base pour la conquête de l'Espagne. Rabat connut toutefois une ère de déclin à partir de 1253, à l'avènement de la dynastie des Almoravides, ayant élu Fès comme capitale de leur empire. Vers 1610, avec l'afflux des réfugiés chassés d'Espagne après la "Reconquista" chrétienne, Rabat fût lentement sortie de sa léthargie par de nombreux commerçants et artisans andalous qui s'y établirent ainsi qu'à la ville jumelle Salé et y développèrent un commerce florissant. Malgré des dissensions épisodiques entre les habitants de ces deux villes, en raison notamment des activités des corsaires basés à Salé et des représailles des puissances européennes, Rabat et Salé réussirent, sous le règne de la dynastie Alaouite, à s'organiser et à se développer.
Research and archaeological excavations carried out with Rabat and its area, show that the site attracted since the remote antiquity of the various people, in particular Phéniciens and the Carthaginians which installed their counters of trade there. The Romans who succeeded to them founded a port with Salé, city bordering. But they are Almohades, and in particular their Abdelmoumen chief, who founded Rabat about 1150, and made of it a ⤽Ribatâ¤, fortress called ⤽Ribat Al Fathâ¤, ⤽Camp of the victoryâ¤, which was used as back bases for the conquest of Spain. Reduction knew however one era of decline since 1253, with the advent of the dynasty of Almoravides, having elected Fès like capital of their empire. About 1610, with the surge of the refugees driven out of Spain after the ⤽Reconquista⤠Christian woman, Rabat had slowly left her lethargy by many tradesmen and Andalusian craftsmen who were established there thus that at the twin city Salé and developed a flourishing trade to with it. In spite of episodical dissensions between the inhabitants of these two cities, because in particular of the activities of the corsairs based with Salé and the reprisals of the European powers, Folds back and Salted succeeded, under the reign of the Alaouite dynasty, to organize themselves and to develop.