After the death of Jayavarman VII, his son Indravarman II (reigned 1219–1243) ascended the throne. Like his father, he was a Buddhist, and he completed a series of temples begun under his father's rule. As a warrior he was less successful. In the year 1220, under mounting pressure from increasingly powerful Đại Việt, and its Cham alliance, the Khmer withdrew from many of the provinces previously conquered from Champa. In the west, his Thai subjects rebelled, establishing the first Thai kingdom at Sukhothai and pushing back the Khmer. In the following 200 years, the Thais would become the chief rivals of Kambuja.