This article has an unclear citation style. (September 2009)
For most of the history of China, its legal system has been based on the Confucian philosophy of social control through moral education, as well as the Legalist emphasis on codified law and criminal sanction. Following the Xinhai Revolution, the Republic of China adopted a largely Western-style legal code in the civil law tradition (specifically German- and Swiss-based). The establishment of the People's Republic of China in 1949 brought with it a more Soviet-influenced system of socialist law. However, earlier traditions from Chinese history have retained their influence.