Attanagalla Rajamaha Viharaya is one of the most famous ancient royal temples in Sri Lanka. Attanagalla Rajamaha Viharaya is the primary one among its nine subordinate temples and is situated in Western Province, Sri Lanka, 28 miles northeast of Colombo, the capital city of Sri Lanka. It is unique because it is the only ancient temple historically recognized as the place where a Bodhisattva (a future Buddha) fulfilled his Dana Paramitha (one of the ten perfections to be completed by a Bodhisattva to become a Buddha, an Awakened One). He sacrificed his life by giving his head in gratitude for a favor he received from a poor and ordinary countryman.
Dagoba at the place where his brother, Bodhisattva Sri Sangabodhi, made the great sacrifice fulfilling a parami.Known by the name of King Sri Sangabodhi (247-249 A.D.) he was recognized in the chronicles and other ancient literature of Sri Lanka as the most pious Buddhist king in Sri Lankan history. After King Sri Sangabodhi, his brother Gotabhaya (249-262 A.D.) became the king of the country and built a became the king of the country and built a Stupa at the place where his brother, Bodhisattva Sri Sangabodhi, made the great sacrifice fulfilling a parami. According to the Attanagalla Vihara Chronicle, during the reign of King Upastissa (365-406 A.D.), one of the monks, having practiced meditation, attained Arahanthship (enlightenment) at this temple. King Upastissa was very pleased to hear this and built a five-story monastery, which he offered to the Maha Sangha.