A lock is a device used on canals and rivers to raise and lower boats between stretches of water of different levels. It has a fixed chamber that can vary in water level. When a boat enters an empty lock, the chamber fills with water from the upper level, raising the boat. When full, the boat exits through the upper gates. For a boat going downstream, the process is reversed - it enters a full lock, which then empties to lower the boat to the lower level. Pound locks, first developed in China, have upper and lower gates that control water levels and allow boats to pass through. They are the most common type of lock used today on canals and rivers worldwide.