A spillway offers a controlled overflow to maintain water level in the canal without eroding the banks at random locations.