In the late 9th century, internal conflict amongst the Abbasids meant that control of the outlying areas of the empire was increasingly tenuous, and in 868 the Turkic officer Ahmad ibn Tulun established himself as an independent governor of Egypt.