Puri was built in the 12th century by Anantavarman, the King of the Ganga dynasty. In 1230 CE, King Anangabhima III dedicated his empire to Lord Jagannath and identified himself as the deputy of the Lord. Gradually, the temple became an important centre of pilgrimage.