The Angkor Wat temple complex was built during the 12 century as king Suryavarman II's state temple and capital city. The Angkor Wat temple is the largest religious building in the world. The outer wall and moat stretches for 3,6 kilometres. Over the time it's affiliation has changed from Hindu worship of the god Vishnu to Buddhism. The temple is an icon of Cambodia, which is also used in the Cambodian flag. In the later years, huge restoration works have been done to the temple. After getting status as a UNESCO World Heritage Site in 1992, founds for this purpose has increased. This has also led to an increase in tourism. Today, more then half a million foreigners come to visit the temple every year.