Major irrigation schemes of Sri Lanka, as evident from the earliest written records in the Mahawansa, date back to the fourth century BCE (Parker, 1881;[1] Brohier, 1934).
The purpose and determination in the construction of the irrigation systems are depicted by the words of Parakrama Bahu I, 1153–1186 CE: "Let not even a drop of rain water go to the sea without benefiting man".
The Sri Lankan chronicle, the Culavamsa which was written in the Buddhist canonical language Pali, enumerates his works both as a provincial ruler in western Sri Lanka and later as the monarch of the whole country: he either built or restored 163 major tanks (reservoirs), 2,617 minor tanks, 3,910 irrigation channels, 328 stone sluices and 168 sluice blocks, besides repairing 1,969 breaches in embankments.
Probably no other country can exhibit works so numerous, and at the same time so ancient and extensive, within the same limited area, as this Island.A wealth of river basin-based water heritage is abundant in Sri Lanka.
Its outer body featured intricately carved domes, with elaborate arches and gates opening to various verandas and shrines of the complex, giving Tenavaram the appearance of a golden city to sailors who visited the port to trade and relied on its light reflecting gopura roofs for navigational purposes.
The Moroccan traveller Ibn Battuta visited the temple in the 14th century and described the deity Dinawar as sharing the same name as the flourishing trade town in which He resided, made of gold and the size of a man with two large rubies as eyes "that lit up like lanterns during the night.
In the years gone by of monarchy rule in ancient Sri Lanka the rock cave shelters cloistered in the recess of the forests served the recluse Buddhist monks in performing their meditation chores and other religious observances.