Around the middle of the 13th c. CE, Thais captured an outpost of the Khmer empire at Sukhothai and established a fledgling kingdom. Under Ramkhamhaeng ( r. 1279?-1298), who is mentioned only in the historically dubious First Inscription, the kingdom supposedly reached its height of power and greatest extent.