Phimai was an ancient Khmer city named Vimai or Vimayapura

Phimai (Thai: พิมาย) is a district (amphoe) in the northeastern part of Nakhon Ratchasima Province, northeastern Thailand.
Phimai was an ancient Khmer city named Vimai or Vimayapura. A stone pillar dating to the reign of King Suryavarman I was found, naming the city Bhirapura meaning strong city. Phimai was the important city ever since, both during Ayutthaya and Rattanakosin times.
Mueang Phimai district was officially established in 1900. Khun Khachit Sarakam (ขุนขจิตสารกรรม) was the first governor.
Queen Mother Sriphatcharindra (Saovabha) visited Prasat Phimai and Sai Ngam (Ficus forest) in 1911. The government officers and people renovated the city for the royal visit, and named six roads to commemorate the event.
In 1940 the government renamed the district by cutting the word Mueang off.