sentences:  The Taeng River, a river that has its source in the mountains of the Daen Lao Range in Wiang Haeng District, flows into the Ping River, one of the main tributaries of the Chao Phraya River, in Mae Taeng District.In 1892, "Khwaeng" Mueang Kuet (เมืองกื้ด) was created, and renamed in 1894 to "Khwaeng" Mueang Kaen (เมืองแกน).In 1907 it was upgraded to a district ("amphoe") named San Maha Phon (สันมหาพน), and renamed Mae Tang in 1939.