Qin was originally a vassal state in the Zhou Dynasty with the surname Ying. According to legend, the founder Boyi assisted Yu in flood control and was given the surname Ying by Emperor Shun. Feizi, a descendant of Boyi, once raised horses for King Xiao of Zhou. With his ability, the horses multiplied quickly. King Zhou Xiao then entrusted him with the Qin Valley area (today's southwest of Tianshui City, Gansu Province). This is the origin of "Qin". In 770 BC, Duke Xianggang of Qin escorted King Ping of Zhou to move eastward for meritorious service, and was granted the title of a vassal. Qin began to found the country and occupied the former Zhou Dynasty's territory in Shaanxi. Later, King Yingzheng of Qin (Qin Shihuang) unified China in 221 BC and established the Qin Dynasty. The State of Qin was a vassal state during the Spring and Autumn Period and the Warring States Period in China. The Qin people are a branch of Xirong (other theories say they are not), with the surname Ying. Legend has it that King Wu of Zhou made Qin's ancestors good at raising horses, so he sealed them in Qin as vassals of the Zhou Dynasty. In 770 BC, Duke Xianggang of Qin escorted King Ping of Zhou to move eastward for meritorious service, and was granted the title of a vassal. Qin began to found the country and occupied the former Zhou Dynasty's territory in Shaanxi. Starting from 677 BC, the State of Qin established its capital in Yong for nearly 300 years. Yongcheng has a palace area, a residential area, a burial area for scholar-bureaucrats and Chinese people, and the Qin Gong Cemetery.