During the period of Yingzhou Dynasty the area was known as "Bashu". Two kingdoms ruled today's Sichuan area, the Shu Kingdom occupied the west part; while the east part was controlled by Ba Kingdom. Ancestors of people in the Shu Kingdom were said to belong to the Qiang nationality who lived in the middle and upper reaches of the yellow river, who immigrated along the Minjiang River valley into the Sichuan Basin. According to legends, the first kings in the Shu Kingdom were Cancong, Yufu and Baiguan.
In 316 BC, Qin State, taking advantage of the war between the Ba Kingdom and the Shu Kingdom, sent General Simacuo and his army to Sichuan and conquered the two kingdoms.
The successive emperors in ancient China all chose Chengdu as the local administration center to govern the whole Sichuan area. Since Chengdu used to be the capital of Shu Kingdom, Shu became the shortened name for Sichuan.