in 624 AD in the Tang dynasty. This, and subsequent imperial codes, formed the basis for the penal system of both China and other East Asian states under its cultural influence. The last and best preserved imperial code is the Great Qing Legal Code, created in 1644 upon the founding of the Qing dynasty. This code was the exclusive and exhaustive statement of Chinese law between 1644 and 1912. Though it was in form a criminal code, large parts of the code dealt with civil law matters and the settlement of civil disputes. The code ceased its operation upon the fall of the Qing dynasty in 1912, but significant provisions remained in operation in Hong Kong until well into the 1970s due to a peculiar interaction between it and the British common law system. In Europe, Roman law, especially the Corpus Juris Civilis, became the basis of the legal systems of many countries. Roman law was either adopted by legislation (becoming positive law), or through processing by jurists. The accepted Roman law is usually then codified and forms part of the central Code. The codification movement gathered pace after the rise of nation-states after the Treaty of Westphalia. Prominent national civil codes include the Napoleonic Code (code civil) of 1804, the German civil code (Bürgerliches Gesetzbuch) of 1900 and the Swiss codes. The European codifications of the 1800s influenced the codification of Catholic canon law resulting in the 1917 Code of Canon Law which was replaced by the 1983 Code of Canon Law and whose Eastern counterpart is the Code of Canons of the Eastern Churches. Meanwhile, African civilizations developed their own legal traditions, sometimes codifying them through consistent oral tradition, as illustrated e.g. by the Kouroukan Fouga, a charter proclaimed by the Mali Empire in 1222–1236, enumerating regulations in both constitutional and civil matters, and transmitted to this day by griots under oath. The Continental civil law tradition spread around the world along with European cultural and military dominance in recent centuries. During the Meiji Restoration, Japan adopted a new Civil Code (1898), based primarily on the French civil code and influenced by the German code. After the Xinhai Revolution of 1911 in China, the new Republic of China government abandoned the imperial code tradition and instead adopted a new civil code strongly influenced by the German Bürgerliches Gesetzbuch, and also influenced by the Japanese code. This new tradition