The 12th century was a time of conflict and brutal power struggles. Under Suryavarman II (reigned 1113-1150) the kingdom united internally: and the large temple of Angkor was built in a period of 37 years: Angkor Wat, dedicated to the god Vishnu.