Before that time there was no basin or wet-dock, though the river Medway to some extent answered the same purpose, but a portion of the adjoining salt-marshes was then taken in, and three basins have been constructed, communicating with each other by means of large locks, so that ships can pass from the bend of the Medway at Gillingham to that at Upnor.