Buyid dynasty
Public rites of remembrance for Husayn's martyrdom developed from the early pilgrimages. Under the Buyid dynasty, Mu'izz ad-Dawla officiated at public commemoration of Ashura in Baghdad. These commemorations were also encouraged in Egypt by the Fatimid caliph al-'Aziz. With the recognition of Twelvers as the official religion by the Safavids, Mourning of Muharram extended throughout the first ten days of Muharram.