Following the Islamic conquest in 641–642, Lower Egypt was ruled at first by governors acting in the name of the Rashidun Caliphs and then the Umayyad Caliphs in Damascus, but in 750 the Umayyads were overthrown. Throughout Islamic rule, Askar was named the capital and housed the ruling administration. The conquest led to two separate provinces all under one ruler: Upper and Lower Egypt. These two very distinct regions were governed by the military and followed the demands handed down by the governor of Egypt and imposed by the heads of their communities.
Egypt was ruled by many dynasties from the start of Islamic control in 639 until the early 16th century. The Umayyad period lasted from 658 to 750. The Abbasid period which came after was much more focused on taxes and centralizing power. In 868, the Tulunids, ruled by Ahmad ibn Tulun, expanded Egypt's territory into the Levant. He would rule until his death in 884. After years of turmoil under Ahmad ibn Tulun's successor, many citizens defected back to the Abbasids and in 904 they would reclaim power from the Tulunids. In 969, Egypt came under the control of the Fatimids. This dynasty would begin to fade after the death of their last ruler in 1171.