 These earlier rites had survived the period of Coptic Christianity.In 639 an army of some 4,000 men were sent against Egypt by the second caliph, Umar, under the command of Amr ibn al-As.This army was joined by another 5,000 men in 640 and defeated a Byzantine army at the battle of Heliopolis.