 Masonry dams were common in North Africa for providing a reliable water supply from the wadis behind many settlements.The Romans built dams to store water for irrigation.They understood that spillways were necessary to prevent the erosion of earth-packed banks.