The Bahri dynasty or Bahriyya Mamluks () was a Mamluk dynasty of mostly Turkic origin that ruled the Egyptian Mamluk Sultanate from 1250 to 1382. They followed the Ayyubid dynasty, and were succeeded by a second Mamluk dynasty, the Burji dynasty. Their name "Bahriyya" means 'of the river', referring to the location of their original settlement on Al-Rodah Island in the Nile (Nahr al-Nil) in Medieval Cairo at the castle of Al-Rodah which was built by the Ayyubid Sultan as-Salih Ayyub. History The Mamluks formed one of the most powerful and wealthiest empires of the time, lasting from 1250 to 1517 in Egypt, North Africa, and the Levant—Near East. Development In 1250, when the Ayyubid sultan as-Salih Ayyub died, the Mamluks he had owned as slaves murdered his son and heir al-Muazzam Turanshah, and Shajar al-Durr the widow of as-Salih became the Sultana of Egypt. She married the Atabeg (commander in chief) Emir Aybak and abdicated, Aybak becoming Sultan. He ruled from 1250 to 1257. The Mamluks consolidated their power in ten years and eventually established the Bahri dynasty. They were helped by the Mongols' sack of Baghdad in 1258, which effectively destroyed the Abbasid caliphate. Cairo became more prominent as a result and remained a Mamluk capital thereafter. The Mamluks were powerful cavalry warriors mixing the practices of the Turkic steppe peoples from which they were drawn and the organizational and technological sophistication and horsemanship of the Arabs. In 1260 the Mamluks defeated a Mongol army at the Battle of Ain Jalut in present-day Israel and eventually forced the invaders to retreat to the area of modern-day Iraq. The defeat of the Mongols at the hands of the Mamluks enhanced the position of the Mamluks in the southern Mediterranean basin. Baibars, one of the leaders at the battle, became the new Sultan after the assassination of Sultan Qutuz on the way home. In 1250 Baibars was one of the Mamluk commanders who defended Mansurah against the Crusade knights of Louis IX of France, who was later definitely defeated, captured in the Battle of Fariskur and ransomed. Baibars had also taken part in the Mamluk takeover of Egypt. In 1261, after he became a Sultan, he established a puppet Abbasid caliphate in Cairo, and the Mamluks fought the remnants of the Crusader states in Palestine until they finally captured Acre in 1291. Tatars and Mongols Many Tatars settled in Egypt