Taizong set out to solve internal problems within the government which had constantly plagued past dynasties. Building upon the Sui legal code, he issued a new legal code that subsequent Chinese dynasties would model theirs upon, as well as neighboring polities in Vietnam, Korea, and Japan. The earliest law code to survive was the one established in the year 653, which was divided into 500 articles specifying different crimes and penalties ranging from ten blows with a light stick, one hundred blows with a heavy rod, exile, penal servitude, or execution.
