A Staircase of Water for Boats
A boat cannot climb a hill, but a canal lock can lift it up one. A lock is a short, walled section of a canal with a gate at each end. It works like an elevator made of water.
Say a boat is traveling uphill on a canal. First, it floats into the lock through an open gate at the low end. The gate closes behind it. Now the boat is inside a box with water on all sides.
Next, workers open small openings in the upper gate. Water from the higher stretch of the canal flows into the lock. Slowly the water rises, and the boat rises with it. Nothing needs to push the boat. Gravity pulls the water in, and the water does the lifting.
When the water inside the lock is as high as the water beyond the upper gate, the flow stops. The upper gate swings open and the boat floats out onto the higher stretch of the canal.
To go downhill, the steps run backward. The boat enters the lock at the top. Water drains out, and the boat sinks gently down to the lower level. Where a canal must climb a steep slope, several locks are built in a row, like steps on a staircase.