The Great Wall of China was constructed to protect against invasions from nomadic peoples of the north, particularly the Huns.