The first "permanent" system of codified laws could be found in China. This was with the compilation of the "Tang Code" in AD 624. This formed the basis of the Chinese criminal code. This was then replaced by the "Great Qing Legal Code". This code was in turn abolished in 1912 following the Xinhai Revolution and the establishment of the Republic of China. The new laws of the Republic of China were inspired by the German codified work, the "Bürgerliches Gesetzbuch". A very influential example in Europe was the French Napoleonic code of 1804.