A canal lock is a structure that lifts and lowers boats from one water level to another. They allow the negotiation of hills without recourse to lengthy detours. Locks were essential.