 He was a Mamluke who had come to Egypt as a young man, less than 20 years old.Bought by Al-Ashraf Bersbay, he remained among his attendants until Al-Ashraf Bersbay died.Then the Sultan Jaqmaq bought Qaitbay, and later gave him his freedom.