Under Suryavarman II (reigned 1113–1150), the Khmer kingdom united internally,[3] and the largest temple of Angkor, Angkor Wat, dedicated to the god Vishnu, was built in a period of 37 years.
In the east, his campaigns against Champa and Annam were unsuccessful,[4] though he did sack Vijaya in 1145 and depose Jaya Indravarman III.
[5] The Khmers occupied Vijaya until 1149, when they were driven out by Jaya Harivarman I.
[7][8] Another period followed, in which kings reigned briefly and were violently overthrown by their successors.
Finally in 1177, the Angkor capital was raided and looted in a naval battle on the Tonlé Sap lake by a Cham fleet under king Jaya Indravarman IV,[1] and Tribhuvanadityavarman, ruler of Angkor, was killed.