But at that time, the 10th century, Dvaravati began to come under the influence of the Khmer Empire and central Thailand was ultimately invaded by King Suryavarman II in the first half of the 12th century.