When Indian religion arrived in Java, ancestral shrines were re-dedicated to Shiva, and the Buddhist temple of Borobudur was created. Despite Islam now being the main religion, shadow puppets are still revered as ancestral spirits.