The second largest city and the main port of Egypt Alexandria was built by the Greek architect Dinocrates (332-331 BC) on the site of an old village, Rhakotis, at the orders of Alexander the Great.