Khair Bey ruled Egypt from 1517 until his death in 1552. He was granted the position of governor by sultan Selim I of the Ottoman Empire for his help in the conquest of Egypt.