Tang Gaozu
The Tang code took its roots in the code of the Northern Zhou (564) dynasty, which was itself based on the earlier codes of the Cao-Wei and Western Jin (268). Aiming to smooth the earlier laws and reduce physical punishments (such as mutilations) in order to appease social tensions in the newly pacified Tang territories, it was created in AD 624 at the request of Emperor Gaozu of Tang. After further revisions in 627 and 637 under Emperor Taizong, the code was completed by commentaries in 653, under Gaozong.