The first dikes were built in ancient Mesopotamia. The levees they used were earth walls and gave protection against the meltwater. 3000 years ago levees were used in ancient Egypt for irrigation systems. 