Smart answer:

Your search for Why was the great wall of china built returned the following results:

Those nomadic tribes

Those nomadic tribes were actually the reason why the Great Wall of China was constructed – in order to protect China from Buddhists.

Source:

for military purposes

The Great Wall of China was built for military purposes.

The Great Wall of China was initially built by compacting reeds and mud, a combination that proved stronger and easily scalable, since the materials were available onsite, important when building a 13,000 mile wall

The Great Wall of China was initially built by compacting reeds and mud, a combination that proved stronger and easily scalable, since the materials were available onsite, important when building a 13,000 mile wall.

Source:

for a reason to protect China from China's enemies from the North, especially Mongolis

The Great Wall of China was built for a reason to protect China from China's enemies from the North, especially Mongolis.

Source:

for defensive purposes

The Great Wall of China was built not for decoration or to be seen forever as a great wonder of the world, but was built for defensive purposes.

as an impassable barrier—

The infamous Great Wall of China was built as an impassable barrier—which is how most people see the problem of abandonment in China.

Source:

a fortification built from the 5th century BC

The Great Wall of China is a fortification built from the 5th century BC.

Source:

by several Chinese dynasties

The Great Wall of China was built by several Chinese dynasties over a period of approximately 2,000 years.

Source:

by successive Chinese dynasties

The Great Wall of China, a UNESCO heritage was built by successive Chinese dynasties from 7th century BC to 16th century AD onwards by various ruling dynasties.

for paranoid Chinese emperors and the Egyptian Pyramids

While the Great Wall of China was built for paranoid Chinese emperors and the Egyptian Pyramids were built for narcissistic mummies, Pallywood’s Hamas love tunnels were built to selflessly share the explosive love of Jihad with infidels worldwide.

Source: