Islam first arrived in Urfa around 638 AD, when the region surrendered to the Rashidun army without resisting, and became a significant presence under the Ayyubids (see: Saladin Ayubbi), Seljuks. In 1144, the Crusader state fell to the Turkish Abassid general Zengui, who had most of the Christian inhabitants slaughtered together with the Latin archbishop (see Siege of Edessa) and the subsequent Second Crusade failed to recapture the city. Subsequently, Urfa was ruled by Zengids, Ayyubids, Sultanate of Rum, Ilkhanids, Memluks, Akkoyunlu and Safavids before Ottoman conquest in 1516.