When the Yuan Dynasty collapsed due to civil unrest the Chinese Han once again took control under the command of rebel leader Zhu Yuanzhang, who became the first emperor of the Ming Dynasty. China flourished during the Ming Dynasty and its military might swell. The Great Wall was systematically rebuilt in a 100-year project to prevent further northern invasion.
Most of the remaining Great Wall was built in the Ming Dynasty, and is known as the Ming Great Wall. The Great Wall sections close to Beijing like the Badaling section and Mutianyu section were built during the Ming Dynasty.