In AD 115, large parts of Alexandria were destroyed during the Kitos War, which gave Hadrian and his architect, Decriannus, an opportunity to rebuild it. In 215, the emperor Caracalla visited the city and, because of some insulting satires that the inhabitants had directed at him, abruptly commanded his troops to put to death all youths capable of bearing arms. On 21 July 365, Alexandria was devastated by a tsunami an event annually commemorated years later as a “day of horror.
In 619, Alexandria fell to the Persians. Although the Byzantine Emperor Heraclius recovered it in 629, in 641 the Arabs under the general ‘Amr ibn al-‘As captured it during the Muslim conquest of Egypt, after a siege that lasted 14 months.
After the Battle of Ridaniya in 1517, the city was conquered by the Ottoman Turks and remained under Ottoman rule until 1798. Alexandria lost much of its former importance to the Egyptian port city of Rosetta during the 9th to 18th centuries, and only regained its former prominence with the construction of the Mahmoudiyah Canal in 1807.
Alexandria figured prominently in the military operations of Napoleon’s expedition to Egypt in 1798. French troops stormed the city on 2 July 1798, and it remained in their hands until the arrival of a British expedition in 1801. The British won a considerable victory over the French at the Battle of Alexandria on 21 March 1801, following which they besieged the city, which fell to them on 2 September 1801. Muhammad Ali, the Ottoman governor of Egypt, began rebuilding and redevelopment around 1810, and by 1850, Alexandria had returned to something akin to its former glory. Egypt turned to Europe in their effort to modernize the country. Greeks, followed by other Europeans and others, began moving to the city. In the early 20th century, the city became a home for novelists and poet.
In July 1882, the city came under bombardment from British naval forces and was occupied.In July 1954, the city was a target of an Israeli bombing campaign that later became known as the Lavon Affair.
Europeans began leaving Alexandria following the 1956 Suez Crisis that led to an outburst of Arab nationalism. The nationalization of property by Nasser, which reached its highest point in 1961, drove out nearly all the rest.