Alexandria is landlocked .
From the late 18th century , Alexandria became a major center of the international shipping industry and one of the most important trading centers in the world , both because it profited from the easy overland connection between the Mediterranean Sea and the Red Sea , and the lucrative trade in Egyptian cotton .