A traditional Chinese legal system was largely in place during the Qing dynasty. The process of the amalgamation of a Confucian world-view and a legal code was considered complete by the "Tang Code" of AD 624. The code was regarded as a model of precision and clarity in terms of drafting and structure. Neo-Confucianism continued to be the state orthodoxy under the Song, Ming and Qing dynasties. Throughout the centuries, the Confucian foundations of the "Tang Code" were retained with even some aspects strengthened.