A candi (pronounced [tʃandi]) is a Hindu or Buddhist temple in Indonesia, mostly built during the zaman Hindu-Buddha or "Indianized period", between the 4th to 15th centuries.
The Great Dictionary of the Indonesian Language of the Language Center defines a candi as an ancient stone building used for worship, or for storing the ashes of cremated Hindu or Buddhist kings and priests. Indonesian archaeologists describe candis as sacred structures of Hindu and Buddhist heritage, used for religious rituals and ceremonies in Indonesia. However, ancient secular structures such as gates, urban ruins, pools and bathing places are often called "candi" too, while a shrine that specifically serves as a tomb is called a "cungkup".
In Hindu Balinese architecture, the term candi refer to a stone or brick structure of single-celled shrine with portico, entrance and stairs, topped with pyramidal roof and located within a pura. It is often modeled after East Javanese temples, and functions as a shrine to a certain deity. To the Balinese, a candi is not necessarily ancient, since candis continue to be (re-)built within these puras, such as the reconstructed temple in Alas Purwo, Banyuwangi.
In contemporary Indonesian Buddhist perspective, candi also refers to a shrine, either ancient or new. Several contemporary viharas in Indonesia for example, contains the actual-size replica or reconstruction of famous Buddhist temples, such as the replica of Pawon and Plaosan's perwara (small) temples. In Buddhism, the role of a candi as a shrine is sometimes interchangeable with a stupa, a domed structure to store Buddhist relics or the ashes of cremated Buddhist priests, patrons or benefactors. Borobudur, Muara Takus and Batujaya for example are actually elaborate stupas.