Mafang is a town in Pinggu District, Beijing, China. It is located within the municipality of Beijing in the country's north.
The town shares borders with Machangying Town to the north, Donggaocun Town to the east, Nanniezhuang Village to the south, and Dasungezhuang Town to the west. As of 2020, Mafang had a population of 29,601.