The Qin dynasty ruled in China from 221 BC to 206 BC. It was created by the warlord Qin Shi Huang during the Warring States Period and defeated several other states in the area to unite China. The Qin ruled China for only a very short time, during which they built both the Terracotta Army and parts of the Great Wall of China.