Built over Four Periods of Time. After the demise of the Qin Dynasty (221BC-207BC), the Han Dynasty was established. It was a unified regime, but was still threatened by the northern Huns. ... At the same time, the Great Wall was erected along the northern borders over four periods of time.