The Phimai City Gate and City Walls were built during the reign of King Chaiworaman VII. Of the 4 gates, the south gate is the most important because the road from the ancient Khmer capital to Phimai runs through it. The sanctuary can be seen when looking straight through the gate.