I'll mark the brainliest! Help please!

What was the purpose of the “locks” on the Erie Canal?

A.to raise or lower boats where the surrounding land was uneven

B.to prevent people from using the canal who had not paid the toll

C.to prevent people from using the canal who had not paid their federal taxes

D.to ensure that boats entering the canal did not stop until they reached the end