The Great Wall of China is a series of stone and earthen fortifications in northern China, built originally to protect the northern borders of the Chinese Empire against intrusions by various nomadic groups. Several walls have been built since the 5th century BC that are referred to collectively as the Great Wall, which has been rebuilt and maintained from the 5th century BC through the 16th century. One of the most famous is the wall built between 220–206 BC by the first Emperor of China, Qin Shi Huang. Little of that wall remains; the majority of the existing wall was built during the Ming Dynasty.
The Great Wall stretches from Shanhaiguan in the east, to Lop Nur in the west, along an arc that roughly delineates the southern edge of Inner Mongolia. The most comprehensive archaeological survey, using advanced technologies, has recently concluded that the entire Great Wall, with all of its branches, stretches for 8,851.8 km (5,500.3 mi). This is made up of 6,259.6 km (3,889.5 mi) sections of actual wall, 359.7 km (223.5 mi) of trenches and 2,232.5 km (1,387.2 mi) of natural defensive barriers such as hills and rivers.