In 868 the Turk Ahmad ibn Tulun gained control of Egypt and gradually asserted his independence from Samarra.
In 868, the Turk Ahmad ibn Tulun took charge of Egypt and began to assert his independence from Samarra.