The Qin Dynasty was very important in the history of China. They followed the philosophy of Legalism. Their capital was at Xianyang. Under the king of this dynasty, China became a powerful country. Many new things were done for the first time. A tight legal system was followed. Written language was developed. The common currency was used. The building of the Great Wall of China was started.