The temple was used as a Buddhist temple from its construction until sometime between the 10th and 15th centuries when it was abandoned. Since its re-discovery in the 19th century and restoration in the 20th century, it has been brought back into a Buddhist archaeological site.