Background: Moulay Idris II over the tomb of Idris II in the mausoleum|left
Idris II, born in 791, was the son and successor of
Idris I. Idris I was a descendant of the
Muhammad who fled from
Abbasid-controlled territory after the
Battle of Fakh because he had supported the defeated pro-
Shi'a rebels. He used his prestige as a descendant of Muhammad to forge an alliance with local
Berbers in 789 and quickly became the most important religious and political leader in the region. He died soon after in 791, just before his son Idris (II) was born. After Idris II officially took over his position as ruler in 803, he significantly expanded the authority of the new
Idrisid state. With the help of new
Arab immigrants, he gained independence from his Berber allies and extended Idrisid control to include most of what is today Morocco and parts of eastern Algeria. Under his rule and that of his Idrisid succcessors, the
islamization of Morocco also progressed significantly. He died in 828.
Early history (9th–13th centuries) , in the heart of
Fes el-Bali There is little certain information about the shrine before the
Marinid dynasty period (14th–15th centuries). The history of both the shrine and the religious culture surrounding it is not clearly traceable until the resurgence of the
sharifs (families and dynasties recognized as descending from Muhammad) in Morocco's political and religious life which took place slowly during the Marinid period. While there is disagreement among sources as to what happened to Idris II's body after his death, most believe that he was buried in the mosque he had built next to his palace of
Dar al-Qaytun (House of the Tent) in the center of Fes, possibly in a mausoleum on its eastern side. The 11th-century author
al-Bakri described the mosque as consisting of a
hypostyle prayer hall with three transverse aisles oriented roughly east-to-west and a large courtyard (
sahn) planted with olive trees. Among other things, he publicly denied that the Shurafa Mosque contained the real tomb of Idris II, promoting the story (reported in some sources) that Idris II had instead been buried next to his father in the town of
Moulay Idriss Zerhoun (about 50 kilometers west of Fez). Over the following decades, further regime changes and military interventions by powers from outside Morocco resulted in political instability and the complete disenfranchisement of the Idrisids. Most of the tombs of saints in the city were also ruined over this time. Since the 19th century, the zawiya has been restored a few more times. It was renovated in 1956 on the initiative of
King Mohammed V and some of the decoration on the outside of the building dates from this time. == Geography ==