The weakest of the five, Prince Teppipit was the first defeated and was executed in 1768. Phimai had also been an important town at the time of the Khmer. The temple Prasat Hin Phimai, located in the center of the town, was one of the major Khmer temples in ancient Thailand, connected with Angkor by an ancient Khmer Highway, and oriented so as to face Angkor as its cardinal direction.