<human>:  Why did the Warring States period end?
<bot>: The Warring States period ended when Qin Shi Huang unified China in 221 BCE. Qin Shi Huang defeated all of his rivals and unified China into one empire. After unifying China, he embarked on a massive building program, including the Great Wall of China.