The Rashidun Caliphate expanded westward into the Byzantine province of Egypt between 639-646 CE, winning victories in key battles at Heliopolis in 640 and Alexandria in 641 and 646. A new capital was established at Al-Fusṭāṭ in 641.