A lock is a device used for raising and lowering boats, ships and other watercraft between stretches of water of different levels on river and canal waterways. The distinguishing feature of a lock is a fixed chamber in which the water level can be varied; whereas in a caisson lock, a boat lift, or on a canal inclined plane, it is the chamber itself that rises and falls.
Canal lock and lock-keeper's cottage on the Aylesbury Arm of the Grand Union Canal at Marsworth in Hertfordshire, England
Lock on the River Neckar at Heidelberg in Germany
Three Gorges Dam lock near Yichang on Yangtze river, China
A gate in the Hatton flight in England
A waterway is any navigable body of water. Broad distinctions are useful to avoid ambiguity, and disambiguation will be of varying importance depending on the nuance of the equivalent word in other ways. A first distinction is necessary between maritime shipping routes and waterways used by inland water craft. Maritime shipping routes cross oceans and seas, and some lakes, where navigability is assumed, and no engineering is required, except to provide the draft for deep-sea shipping to approach seaports (channels), or to provide a short cut across an isthmus; this is the function of ship canals. Dredged channels in the sea are not usually described as waterways. There is an exception to this initial distinction, essentially for legal purposes, see under international waters.
A floating market on one of Thailand's waterways
Car ferry across Lake Maggiore, Italy
The European waterway network, differentiating waterways by Class (I to VII)