Velgam Vehera (also known as Vilgam Rajamaha Viharaya) (Sinhala: වෙල්ගම් වෙහෙර) is a historical Buddhist temple situated in Kanniya, Trincomalee District, Sri Lanka.
An inscription found in the temple was written during the reign of King Bhatika Tissa (141-165 AD).
Following the collapse of the Anuradhapura and Polonnaruwa Kingdoms the population migrated to the southern part of country, which resulted in the temple being abandoned and falling into ruin.
With the invasion of Cholas from India in 993 AD, many of Buddhist shines was destroyed in the country.
[3] The Cholas instead renovated the temple, adding their own structures and renamed it Rajarajaperumpalli, after King Rajaraja I.