The first evidence of the Jagannath Temple is found in the Van Parva of the Mahabharata. It is believed that the first worship of Lord Jagannath as Neel Madhav was started by the Sabar tribe. Today, several servants in Puri’s temples are known as Daitapatis. The construction of the Jagannath Temple was initiated by Indradyumna, the king of Malwa. He had a dream vision of the Jagannath Temple, and extensive texts about him can be found. He conducted many grand sacrifices and built a reservoir. One night, Lord Vishnu appeared in his dream and told him about an idol of Neel Madhav hidden in a cave on Neelanchal Mountain. The king sent his servants to find this idol, and they encountered a Brahmin named Vidyapati who knew that the Sabar tribe worshipped Neel Madhav and had hidden the idol in the mountain cave. Vidyapati married the chief’s daughter and eventually managed to locate the idol and brought it to the king. Vidyapati was saddened by the theft of his deity's idol, and Lord Vishnu, feeling his devotee’s sorrow, returned to the cave but promised the king that he would return if a grand temple was built. The king constructed a temple and prayed for Lord Vishnu to reside there. Vishnu instructed him to retrieve a large piece of wood floating in the sea at Dwarka, which was carried to Puri. The king's servants were unable to lift the wood until the chief of the Sabar tribe, Viswavasu, effortlessly did so. The deity Vishwakarma appeared as an old man and agreed to carve the idols on the condition of working alone for 21 days. The queen, worried after hearing no sounds, broke the rule, and they found three incomplete idols. The king accepted this as divine will and installed the incomplete idols of Jagannath, Balabhadra, and Subhadra. The current temple was built in the 7th century and renovated by Odisha ruler Anantavarman Chodaganga in 1174 AD. Several smaller temples surround the main temple.