Badrinath is the northern Dham of the four sacred Dhams (pilgrimage centres) called Char Dham. Though the Badrinath temple is believed to date to the Vedic period, the current structure was built in the 8th century AD by Adi Shankaracharya. The other three dhams are Rameshwaram in the south, Dwarka in the west and Jagannath Puri in the east; all of these four temples are dedicated to god Vishnu. Adi Shankara's basic intention was to unite the country under the banner of Hinduism. The temple, which had been subjected to damage due to snow avalanches and landslides, several times in the past, was last restored in the 19th century with the royal patronage of the Scindias and Holkars. Badrinath is also part of Chota Char Dham, four sacred temples in Uttarakhand. The others include the Shiva temple of Kedarnath and the sources of the holy rivers Ganges and Yamuna.