Sultan as-Salih Ayyub (r. 1240–1249), the last of the Ayyubid sultans, had acquired some 1,000 mamluks (some of them free-born) from Syria, Egypt, and the Arabian Peninsula.