Wanping Fortress, also known as Wanping Castle is a Ming Dynasty fortress, or "walled city" in Beijing. It was erected in 1638–1640, with the purpose of defending Beijing against Li Zicheng and the peasant uprising. It lies adjacent to the Lugou Bridge.
The Wanping Fortress has two gates, the east gate named Ever Prosperous Gate, then renamed as Majestic Gate, and the west gate named as Favorably Govern Gate.In Chinese, the fortress is sometimes called Wanping City, and from the beginning, it functioned as a military fortress. From west to east, it measures 640 meters, and from south to the north 320 meters, make it a half-square shaped. To the west of the fortress, there is the Yongding River, and the Lugou Bridge (Marco Polo Bridge).