The Fatimid conquest of Egypt took place in 969 when the troops of the Fatimid Caliphate under the general Jawhar captured Egypt, then ruled by the autonomous Ikhshidid dynasty in the name of the Abbasid Caliphate.
The Fatimids launched repeated invasions of Egypt soon after coming to power in Ifriqiya (modern Tunisia and eastern Algeria) in 909, but failed against the still-strong Abbasid Caliphate. By the 960s, however, while the Fatimids had consolidated their rule and grown stronger, the Abbasid Caliphate had collapsed, and the Ikhshidid regime was facing prolonged crisis: foreign raids and a severe famine were compounded by the death in 968 of the strongman Abu al-Misk Kafur. The resulting power vacuum led to open infighting among the various factions in Fustat, the capital of Egypt. The atmosphere of crisis was deepened by the simultaneous advances of the Byzantine Empire against the Muslim states of the Eastern Mediterranean. Meanwhile, Fatimid agents operated openly in Egypt, and the local elites increasingly came to accept and even welcome the prospect of a Fatimid takeover in hopes of ending the instability and insecurity.