The 12th century was a time of conflict and brutal power struggles. Under Suryavarman II (reigned 1113-1150) the Khmer kingdom united internally: and the largest temple of Angkor was built in a period of 37 years: Angkor Wat, dedicated to the god Vishnu. In the east, his campaigns against Champa, and Annam, were unsuccessful,: though he did sack Vijaya in 1145 and depose Jaya Indravarman III.: The Khmers occupied Vijaya until 1149, when they were driven out by Jaya Harivarman I.: Suryavarman II sent a mission to the Chola dynasty of south India and presented a precious stone to the Chola Emperor Kulothunga Chola I in 1114.