Ports and harbors serve as points of departure and arrival for ships, particularly for loading and unloading cargo.