Puri temple photo
According to recently discovered copper plates from the Ganga dynasty(reference required), the construction of the current Jagannath temple was initiated by the ruler of Kalinga, Anantavarman Chodaganga Dev. The Jagamohana and the Vimana portions of the temple were built during his reign (1078 - 1148 CE). However it was only in the year 1174 CE that the Orissan ruler Ananga Bhima Deva rebuilt the temple to give a shape in which it stands today.
Jagannath worship in the temple continued until 1558, when Orissa was attacked by the Afghan general Kalapahad. Subsequently, when Ramachandra Deb established an independent kingdom at Khurda in Orissa, the temple was consecrated and the deities reinstalled