A port is a location on a coast or shore containing one or more harbors where ships can dock and transfer people or cargo to or from land. Port locations are selected to optimize access to land and navigable water, for commercial demand, and for shelter from wind and waves. Ports with deeper water are rarer, but can handle larger ships. Since ports throughout history handled every kind of traffic, support and storage facilities vary widely, may extend for miles, and dominate the local economy. Some ports have an important military role.
One of the world's oldest known artificial harbors is at Wadi al-Jarf on the Red Sea. Along with the finding of harbor structures, ancient anchors have also been found.
Guangzhou was an important port during the ancient times as far back as the Qin Dynasty.
Canopus was the principal port in Egypt for Greek trade before the foundation of Alexandria.
Athens' port of Piraeus was the base for the Athenian fleet and this played a crucial role in the Battle of Salamis against the Persians in 480 BC.
Lothal is one of the most prominent cities of the ancient Indus valley civilisation, located in the Bhāl region of the modern state of Gujarāt and dating from 3700 BCE.
Ostia Antica was the port of ancient Rome with Portus established by Claudius and enlarged by Trajan to supplement the nearby port of Ostia.
During the Edo period, the island of Dejima was the only port open for trade with Europe and only received one Dutch ship per year, whereas Osaka was the largest domestic port and the main trade hub for rice.
Ports often have cargo-handling equipment, such as cranes (operated by longshoremen) and forklifts for use in loading ships, which may be provided by private interests or public bodies. Often, canneries or other processing facilities will be located nearby. Some ports feature canals, which allow ships further movement inland. Access to intermodal transportation, such as railroads and highways, is critical to a port, so that passengers and cargo can also move further inland beyond the port area. Ports with international traffic have customs facilities. Harbor pilots and tugboats may maneuver large ships in tight quarters when near docks.