Dupuy's brigade pursued the routed enemy and at night entered Cairo, which had been abandoned by the beys Mourad and Ibrahim. On 4 Thermidor (22 July), the notables of Cairo came to Giza to meet Bonaparte and offered to hand over the city to him. Three days later, he moved his main headquarters there. Desaix was ordered to follow Mourad, who had set off for Upper Egypt. An observation corps was put in place at Elkanka to keep an eye on the movements of Ibrahim, who was heading towards Syria. Bonaparte personally led the pursuit of Ibrahim, beat him at Salahie and pushed him completely out of Egypt.