In Edzná the Mayans developed an advanced system of hydraulic works: a network of canals drained the valley and the water was led to a lagoon, which was transformed into a dam, through retaining walls, while other canals served to irrigate the fields. Its squares had a magnificent drainage system and the rainwater reached artificial reservoirs, called chultunes.