Idrisid dynasty
In the early 8th century the region became steadily integrated into the emerging Muslim world, beginning with the military incursions of Musa ibn Nusayr and becoming more definitive with the advent of the Idrisid dynasty at the end of that century. The arrival of Islam was extremely significant as it developed a new set of societal norms (although some of them were familiar to Judeo-Christian societies) and institutions which therefore shaped, to some extent, the types of buildings being built and the aesthetic or spiritual values that guided their design.