During the period of Qin Xiaogong, the foreign counselor Shang Yang was used to carry out reforms. The Qin State adopted the diplomatic strategy of distant diplomacy and close attack, and gradually became stronger. By the time of Qin Shihuang, it had the material foundation to unify the six countries.