After fighting three battles with the Romans, the Muslims conquered them. So when the chief men of the city saw these things, they went to Amr, and received a certificate of security for the city, that it might not be plundered. This kind of treaty which Muhammad, the chief of the Arabs, taught them, they called the Law; and he says with regard to it : «As for the province of Egypt and any city that agrees with its inhabitants to pay the land-tax to you, and to submit to your authority, make a treaty with them, and do them no injury. But plunder and take as prisoners those that will not consent to this and resist you». For this reason the Muslims kept their hands off the province and its inhabitants, but destroyed the nation of the Romans, and their general who was named Marianus. And those of the Romans who escaped fled to Alexandria, and shut its gates upon the Arabs, and fortified themselves within the city.