Aluvihare Rock Temple was the historic location where the Pāli Canon was first written down completely in text on palm leaves. Many monastery caves, some of which exhibit frescoes are situated near this temple. The name of this temple is related with light. According to some folklore and beliefs, the term Aloka Vihara (temple of light) later became Aluvihara. The history of Aluvihare Rock Temple is traced back to the 3rd Century B.C to the reign of King Devanampiyatissa. It is believed that the King built the dagoba, planted the Bo sapling and founded the temple after the introduction of Buddhism to the country during his reign.