Angkor Wat was shared by two religions. It was originally built as a Hindu temple dedicated to the god Vishnu, breaking the previous kings' tradition of worshiping Shaiva. It gradually turned into a Buddhist temple towards the end of the 12th century and is still used for worship today.