Wǎnpíng
Wanping was one of the two counties attached to Beijing, administering the western part of the capital and countryside beyond it. Its county office stood within the city, sharing the duties of government with neighbouring Daxing. In 1640, as the Ming faced rebel armies and the rising Qing, a fortified town called Gongji was built near the Lugou Bridge to guard the western approach to Beijing.