At that time, Qin Xiaogong was eager to make Qin strong through reform, so Shang Yang began to implement Shang Yang's political reform with the support of Qin Xiaogong. Although Qin became powerful at the speed visible to the naked eye, the existence of Shang Yang's reform violated the interests of the old nobles of Qin. Qin Xiaogong was the only person in the whole state of Qin who could tolerate him, so after Qin Xiaogong's death, Shang Yang was torn apart by Qin Huiwen and died in his own criminal law.
Of course, if Shang Yang died in this way, the kings of Qin might think of Shang Yang's previous contribution to Qin State and rehabilitate Shang Yang, but Shang Yang chose to rebel when he was desperate. Although we all know that Shang Yang's rebellion is entirely to save his own life, it is a rebellion after all. No king will rehabilitate a traitor, even a person like Shang Yang who can unify the six countries like Qi.
Qin Xiaogong had anticipated the end of Shang Yang before his death, so he wanted to pass on the throne to Shang Yang, and let Shang Yang's political reform continue to run in his hands. But Shang Yang refused, and Qin Xiaogong's son Qin Huiwen acceded to the throne. Under the denigration of Shang Yang by the surrounding ministers, and the fact that King Qin Huiwen himself had the idea of starting work on Shang Yang, Yu Shizhi turned to capture Shang Yang.
Ironically, at that time, Shang Yang wanted to escape from the State of Qin, and wanted to stay in a hostel on the way. But he didn't bring any documents to prove his identity, so he was rejected by the store, because Shang Yang's political reform stipulated that guests without documents could not stay overnight. Finally, after Shang Yang was arrested, he also died in his own car splitting punishment.