Phimai, which is officially named Prasat Hin Phimai was built during the 11th and 12th century, during which time the area was part of the Khmer empire. It was constructed on the end of the ancient highway connecting it with Angkor (present daySiemReap),with other Khmer temples like MuangTum and PhanomRung inbetween.