The Zongli Yamen (traditional Chinese: ?; simplified Chinese: ?; pinyin: ; Wade-Giles: Tsung3-li3 Ya2-men2) was the government body in charge of foreign policy in imperial China during the late Qing dynasty. It was established by Prince Gong in 1861 after the Convention of Beijing. It was abolished in 1901 and replaced with a Foreign Office of ministry rank.
Zongli Yamen is a traditional abbreviation of the official name (; ; Manchu, the other official language of the Qing Empire, was Geren gurun i baita be uherileme icihiyara yamun. () A common misconception is that the Zongli Yamen's name means the "Premier's Office". This arose because the term zongli () is now used in Chinese to refer to the Premier or Prime Minister of a country. In fact, the name Zongli Yamen is an abbreviation of its full name, which makes it the bona fide office of foreign affairs. In contemporary English sources, it was also called the "Board of Ministers for Foreign Affairs"), literally meaning "Office in Charge of Affairs of All Nations". The corresponding name in
Prior to the creation of the Zongli Yamen, Qing foreign relations were conducted by several different agencies, such as the Ministry of Rites and the Lifan Yuan. The Zongli Yamen was the first significant institutional innovation in the central Beijing bureaucracy that the Qing government had made since the Yongzheng Emperor created the nucleus of the Grand Council in 1729. The Zongli Yamen was supervised by a controlling board of five senior officials (initially all Manchus), among whom Prince Gong was the de facto leader. In their discussions on establishing the new agency, Qing officials reiterated that it was only to be a temporary institution, maintained until the current foreign and domestic crisis had passed. The Zongli Yamen had a relatively low formal status in the Qing administrative hierarchy and its members served concurrently in other government agencies, which further weakened its position. Furthermore, the Zongli Yamen was not the sole policy making body in foreign affairs, a prerogative which still rested in the hands of the emperor. While the Zongli Yamen remained an important body for a few decades after its foundation, its influence was soon overshadowed by influential officials such as Zeng Guofan and Li Hongzhang. Nevertheless, it became the means of communication between the Qing government and the foreign ministers to China in Beijing's legation quarter.
In 1873, the Zongli Yamen got into a quarrel with the foreign ministers to China over the protocol that was to be followed at their audience with the Tongzhi Emperor, as the foreign ministers not surprisingly refused to perform the ritual kowtow to the emperor, with an impasse eventually being solved thanks in part to the Japanese ambassador to China, Soejima Taneomi. Similar protocol would be followed in 1891 with the ministers' audience with the Guangxu Emperor.
Following the Boxer rebellion, the Qing government was forced to change its foreign service. According to Article XII in the Boxer Protocol 1901, the Zongli Yamen was replaced with a Foreign Office, known at the time as the Waiwubu (; ; 'External Affairs Department'), which ranked above the other six boards in the government; "as the course of subsequent events made clear, the Waiwubu was as ineffective in the establishment of good relations between China and the outside world as the Zongli Yamen had been."