Shajar al-Durr was of either Armenian or Turkic origin, and described by historians as a beautiful, pious and intelligent woman. in the Levant before he became a Sultan and accompanied him and Mamluk Baibars (not the Baibars who became a Sultan) to Al Karak during his detention there in 1239. Later when As-Salih Ayyub became a Sultan in 1240 she went with him to Egypt and gave birth to their son Khalil who was called al-Malik al-Mansour. Some time after the birth, As-Salih Ayyub married her.