Napoleon conducted himself agreeably to these conclusions, which were equally just and profound. He immediately made his plans for establishing the French authority at Alexandria, and for quitting the Delta and gaining possession of Cairo, the capital of Egypt. It was the month of July; the Nile was about to inundate the country. He was anxious to reach Cairo before the inundation, and to employ the time during which it should last in establishing himself there. He ordered everything at Alexandria to be left in the same state as formerly; that the religious exercises should be continued; and that justice should be administered as before by the cadis. His intention was merely to possess himself of the rights of the Mamluks, and to appoint a commissioner to levy the accustomed imposts. He caused a divan, or municipal council, composed of the sheikhs and principal persons of Alexandria, to be formed, in order to consult them on all the measures which the French authority would have to take. He left three thousand men in garrison in Alexandria, and gave the command of it to Kleber, whose wound was liable to keep him in a state of inactivity for a month or two. He directed a young Frenchman of extraordinary merit, and who gave promise of becoming a great engineer, to put Alexandria in a state of defence, and to construct there all the necessary works. This was Colonel Cretin, who, in a short time, and at a small expense, executed superb works at Alexandria. Bonaparte then ordered the fleet to be put in a place of security. It was a question whether the large ships could enter the port of Alexandria. A commission of naval officers was appointed to sound the harbour and make a report. Meanwhile, the fleet was anchored in the road of Abukir, and Bonaparte ordered Brueys to see to it that this question should be speedily decided, and to proceed to Corfu if it should be ascertained that the ships could not enter the harbour of Alexandria.