Ying Quliang was the son of Duke Xian of Qin. He came to the throne in 361 BC at the age of twenty-one. At that time, the state of Qin was "secluded in Yongzhou and did not form an alliance with the Chinese princes, so Yi and Zhai encountered it." The land west of Hexi was still in the hands of the state of Wei. Duke Xiao felt so ashamed that when he came to the throne, he issued an order seeking talents, declaring, "If any of the guests and ministers can come up with unexpected plans to strengthen the Qin Dynasty, I will respect the officials and divide the territory with them." Gongsun Yang, a native of Wei, heard the order and entered Qin. He impressed Duke Xiao with his skills of enriching the country and strengthening its army.
Starting from 356 BC, Duke Xiao appointed Shang Yang to implement reforms: establishing households, rewarding farming and fighting, conferring titles based on military merit, and strictly prohibiting private fights. In 350 BC, he moved the capital to Xianyang, abandoned mine fields, opened Qianmo, merged small towns into counties, and unified weights and measures. According to "Historical Records", after ten years of implementation of the new law, "the people of Qin said that there are no relics on the road and no thieves in the mountains." The Qin State's national power has greatly increased. The Emperor of Zhou gave Duke Xiao the title of "Bo", and the princes all congratulated him.
After that, the Qin army marched eastward, and Shang Yang defeated the Wei army and captured Wei Gong Ziang. Wei ceded territory to seek peace. In 338 BC, Duke Xiao died at the age of just over forty years, and Crown Prince Si came to the throne. Shang Yang was immediately framed by the old nobles and was framed, but the new law was continued, laying the institutional foundation for Qin to finally unify the world.
Duke Xiao was a key monarch in the rise of Qin. He sought talents sincerely and trusted Shang Yang for more than 20 years. He withstood the opposition of the clan nobles and enabled the reform to be thoroughly implemented. Measures such as rewarding farming war, county system, household registration, and unification of weights and measures laid the institutional foundation of Qin for more than a hundred years and became the blueprint for Qin dynasty to unify the country in the future. However, the new law was harsh and ungrateful, and the severe punishments also left a harsh and cruel political tradition for the Qin State.