Zirid dynasty
In 1049 the Zirid dynasty in the Maghrib returned to the Sunni faith and became subjects of the Caliphate in Baghdad, but at the same time Yemen recognized the Fatimid caliphate. Meanwhile, Baghdad was taken by the Turks, falling to the Seljuk Tughrul Beg in 1059. The Turks also plundered Cairo in 1068, but they were driven out by 1074. During this time, however, Syria was overrun by an invader in league with the Seljuk Malik Shah, and Damascus was permanently lost to the Fatimids. This period is otherwise memorable for the rise of the Hashshashin, or Assassins.