What were ditches and canals used for?

A Drainage and transportation paths
B. Building cities
C. Catching frogs and toads
D. Healing the sick