Conversation so far:
where is the the great wall of china located
The Great Wall of China is built across the historical northern borders of China.
how long is the great wall
The Great Wall is 21,196 km (13,171 mi).

Question: why was the wall built
Self-contained rewrite: why was the great wall built