A wharf or quay ( /ˈkiː/, US also /ˈkeɪ/ or /ˈkweɪ/) is a structure on the shore of a harbor where ships may dock to load and unload cargo or passengers. Such a structure includes one or more berths (mooring locations), and may also include piers, warehouses, or other facilities necessary for handling the ships.