The Great Wall is a series of fortifications stretching roughly east-west along China's historical northern frontier, built to defend against nomadic incursions. It does not surround the entire country—China's southern, eastern, and western borders are defined by geography (mountains, rivers, seas) and other walls or passes, not a continuous enclosure.
The wall system spans ~21,000 km including branches, but it's a linear barrier, not a perimeter around the nation.