The Arab conquest of Egypt, led by the army of Amr ibn al-As, under the Rashidun Caliphate took place between 639 and 642 AD. It ended the Roman period in Egypt which began in 30 BC and lasted for seven centuries, and more broadly, the Greco-Roman period which lasted for about a millennium.
Prior to the conquest, Byzantine rule in the country had been shaken, as Egypt had been conquered and occupied by the Sasanian Empire for a decade between 618–629, before being reconquered by the Byzantines under emperor Heraclius. The Caliphate took advantage of Byzantines' exhaustion to invade Egypt.