The Kingdom of Morocco traces its founding to 789 AD, when Idris I established the Idrisid dynasty — making it one of the world's oldest continuously existing nations.
However, the region's human history extends far deeper: prehistoric cultures, Phoenician and Carthaginian settlements, the Roman province of Mauretania Tingitana, and successive Islamic dynasties (Almoravids, Almohads, Marinids, Saadians, Alaouites) have all shaped the land now known as Morocco.