Chiang Mai Province
Neighboring districts are (from the northeast, clockwise) Mae Ai of Chiang Mai Province, Mae Suai of Chiang Rai Province, Chai Prakan of Chiang Mai Province, and Shan State of Myanmar. The Fang River, a tributary of the Kok River, gives its name to the district.