Tha Pae Gate was first built in 1296 during the reign of King Mangrai as part of the city’s defensive system of walls and moat. Originally, it was called Chiang Rueak Gate, named after a nearby village, and served as the main eastern entrance to the city. The area outside the gate developed into an important commercial zone, connected to regional trade routes and river transport along the Ping River.