The Abbasid rule declined due to poor leadership, revolts, and invasions over centuries. The Fatimids revolted and established their own caliphate in North Africa. The Seljuk Turks captured Baghdad in 1055 and allowed the Abbasid caliph to remain as a religious leader only. In 1258, the Mongols led by Genghis Khan sacked Baghdad, killing over 200,000 people and murdering the Abbasid caliph, bringing an end to the Abbasid Empire.