While the Qing dynasty of China tried to maintain the traditional tributary system of China, by the 19th century Qing China had become part of a European-style community of sovereign states and had established official diplomatic relations with more than twenty countries around the world before its downfall, and since the 1870s it established legations and consulates known as the "Chinese Legation", "Imperial Consulate of China", "Imperial Chinese Consulate (General)" or similar names in seventeen countries, namely the Austria-Hungary, Belgium, Brazil, Cuba, France, Germany, Italy, Japan, Mexico, Netherlands, Panama, Peru, Portugal, Russia, Spain, United Kingdom and the United States.