<human>:  Why was the Great Wall of China built?
<bot>: The Great Wall of China was built to protect China from the Huns and other nomadic tribes. The Great Wall of China was built in the early 3rd century BC by the first Emperor of China, Qin Shi Huang, who unified China under his rule.