Zhefang is a town in Mangshi, Yunnan, China. As of the 2017 census it had a population of 49,000 and an area of 422 square kilometres (163 sq mi). The town is bordered to the north by Xishan Township, to the east by Santaishan Town and Mengga Town, to the south by Manghai Town and Myanmar, and to the west by Ruili.