It is a huge masonry wall, which was used to store the water needed to grind the wheat. It used a power generation system similar to that of the mills that were attached to the dams, and which also had other uses such as fishing, washing places, drinking troughs...