Locks are constructed so barges can get around a dam. The locks act as elevators to raise or lower barges to the next level. Dams are structures to level out the river. Locks are structures to get around the dams.