Egypt Eyalet
After serving as kapıcıbaşı ("chief gatekeeper") for some time, Mustafa was appointed a vizier in 1511 under Bayezid II, and finally beylerbey (governor) of the Egypt Eyalet (province) of the empire in 1522, serving for one year (1522–1523).