The Aluvihare Rock Temple (also called Matale Alu Viharaya) is a sacred Buddhist temple located in Aluvihare, Matale District of Sri Lanka. Surrounded by hills, the Aluvihara cave temple is situated 30 km north of Kandy on the Matale-Dambulla road. 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. Aluvihare Rock Temple was the historic location where the P?li Canon was first written down completely in text on ola (Palm) leaves. Many monastery caves, some of which exhibit frescoes are situated near this temple.