A building in Anurādhapura, near the west gate.
The grounds of the building were laid out by Pandukābhaya (Mhv.x.90; xvii.30).
Gajabāhu I. first erected the Mahejjāsanasālā (Mhv.xxxv.122).
The Mahāvamsa Tīkā (p.378) explains that Mahejavatthu is a shrine (devatthāna) dedicated to the Yakkha Maheja.