Mahasena, also known in some records as Mahasen, was a
king of
Sri Lanka who ruled the country from 277 to 304 AD. He started the construction of large
tanks or reservoirs in Sri Lanka, and built sixteen such tanks. After becoming king, Mahasen discriminated against Theravada Buddhists in the country, and destroyed several temples including Mahavihara, the main Theravada temple, before his
chief minister led him to realise his mistakes. The
Jethavana stupa was also built by Mahasen. His countrymen regarded him as a god or deity after the construction of the
Minneriya tank, and he was named Minneri Deviyo (God of Minneriya).