Muhammad Ali dynasty
The church suffered greatly under the many regimes of Islamic rule. Sometime during the 2nd millennium AD, the leadership of the church, including the Pope, moved from Alexandria to Cairo. In 1798, the French invaded Egypt unsuccessfully and the British helped the Turks to regain power over Egypt under the Muhammad Ali dynasty.