in
von Gumpach v Hart The good relations Hart established with the imperial authorities in Peking while deputising for Lay, and conflict between Lay and
Prince Gong and the
Zongli Yamen over the Osborn Fleet, led them to dismiss the difficult and haughty Lay upon his return from leave. Hart was appointed in his place in November 1863, with British approval. As Inspector-General of China's
Imperial Maritime Custom Service, Hart's main responsibilities included collecting custom duties for the Chinese government, as well as expanding the new system to more sea and river ports and some inland frontiers, standardising its operations, and insisting on high standards of efficiency and honesty. The top echelon of the service was recruited from all the nations trading with China. Hart's advice led to the improvement of China's port and navigation facilities. From the start, Hart was anxious to use such influence as he possessed in favour of other modernising steps. In October 1865 Hart submitted to
Prince Gong a memorandum which caused some offence at the time. In it he advised that "[o]f all the countries in the world, none is weaker than China" and outlined his proposals. A modern postal service and the supervision of internal taxes on trade were eventually added to the Service's responsibilities. Hart worked to persuade China to establish its own embassies in foreign countries. Earlier, in 1862, he had with the Manchu noble
Prince Gong established the
Tongwen Guan (School of Combined Learning) in Peking, with a branch in Canton, to enable educated Chinese to learn foreign languages, culture and science, for China's future diplomatic and other needs. (An early appointment to the school was the completely unsuitable '
Baron von Gumpach' (an assumed name) whose discharge led him to sue Hart in the
British Supreme Court for China and Japan for defamation. In 1873, the case ultimately went to the
Judicial Committee of the Privy Council Hart v Gumpach which upheld Hart's right to make the decision.) In 1902 the Tongwen Guan was absorbed into the Imperial University, now
Peking University. Hart was known for his diplomatic skills, and befriended many Chinese and Western officials. This aided him in directing customs operations without interruption even during periods of turmoil. His American Commissioner, Edward Drew, credited him with preventing a war with Britain in 1876 (via the
Chefoo Convention), and he and his London representative, James Campbell, helped bring about peace after a French attack on the Chinese navy in
Fuzhou in 1884. In 1885, Hart had also been asked to become Minister Plenipotentiary at Peking, upon the retirement of Sir
Thomas Wade. He declined the honor after four months of hesitation, on the grounds that his work in the Customs Service was of certain benefit to both China and Britain, but that the outcome of a change of post was unclear. In 1885, Hart wrote a letter to
Lord Salisbury, strongly advocating an alliance with China as a preemptive defence of British India from the Russian Empire. During Hart's tenure in the Maritime Customs, Prince Gong was head of the
Zongli Yamen, the newly established Chinese equivalent of the
British Foreign Office, and the two men held each other in high regard. Hart was so well known in the Zongli Yamen that he was affectionately nicknamed "our Hart" (wǒmen de Hèdé, 我們的赫德). He also often worked closely with the powerful Viceroy,
Li Hongzhang and their final work together involved negotiating a settlement China could tolerate at the end of the
Boxer Rebellion, when the
Eight-Nation Alliance of Western forces took control of Peking to lift the
Siege of the International Legations, after the
Dowager Empress and her nephew the
Guangxu Emperor had fled the city. Hart held his post till his retirement in 1910, although he left China on leave in April 1908, and was succeeded temporarily by his brother-in-law, Sir
Robert Bredon, and then formally by Sir
Francis Aglen. Hart died on 20 September 1911 after a cardiac decline following a bout of pneumonia. He was buried on 25 September 1911 at
Bisham, Berkshire, England. ==Personal life==