The Chinese Maritime Customs Service (CMCS) was born of legal disorder. Coming into existence in the aftermath of both domestic rebellions and foreign invasions, it was deeply involved in the legal transformation of the late Qing dynasty and played a significant role in the construction of a legal order.
How did a (seemingly foreign-led) customs service become a driving force in the legal transformation of late Qing China? In Chinese legal history, the CMCS exemplifies a legal transformation in the late Qing dynasty that was not state-centric. Nominally, it was an executive branch of China’s government, but counterintuitively, it was more of an international institution, with most of its senior officials being foreigners. Its unique nature stemmed from the semi-colonial and semi-feudal context of modern China that facilitated its emergence.
Initially, it was a makeshift solution devised by the consuls of Britain, America, and France to restore the foreign trade order in Shanghai in 1854. After the signing of the Treaty of Tianjin, the Self-Strengthening Movement witnessed the establishment of a “synarchy framework”. In this context, the CMCS gradually evolved into one of the most critical bureaucracies of China by serving as the bridge between Britain’s pursuit of free trade and hegemony and China’s goal of maintaining sovereignty, independence, and modern transformation.

Under the leadership of Inspector General Robert Hart, the CMCS established itself as a neutral intermediary between the Qing government and Western powers. It functioned as a de facto tertius gaudens – a third party that strategically positioned itself to benefit from the interactions and tensions between the two sides. Through this, it was able to gain a high degree of independence and exert considerable influence over China’s modernization. This happened partly because of its crucial position for both China and the West, and also due to its hard work to establish authority.
Specifically, to support its objectives of preservation and expansion, the CMCS introduced an international legal order externally and established a systematic legal framework internally, deeply intertwining its operations with the broader legal transformation of the late Qing period.
The Introduction of an International Legal Order
The CMCS introduced Western international law into China to shape its external legal order, setting the course of China’s “entrance into the family of nations”, in Immanuel C.Y. Hsu’s words.1 The process began with the translation of international laws and legal education sponsored by the CMCS. Henry Wheaton’s Elements of International Law, translated into Chinese by W. A. P. Martin, brought basic principles, ideas, and concepts of modern international law to China. At the same time, the founding of Tongwenguan, a government school for teaching Western languages and science, in 1862 signaled the start of a new chapter in education on public international law in China.

The development would not have been so smooth without Hart’s help and encouragement. The Inspector General had such strong ties with the school that Martin himself called him the “father” of Tongwenguan. His support for public law education was evident in his appointment of Martin as the first professor of public law in China, the establishment of public law courses, and the popularization of public law education. Some of the foreign professors employed by Tongwenguan even came from the CMCS, such as Commissioners Morse, Oliver, and Piry.

In diplomacy, the CMCS played an active role in Sino-foreign negotiations, so that “in all international questions, from negotiating a treaty to settling a land dispute, the Zongli Yamen in those days of inexperience had constant resort to the advice and help of the Inspector General at Peking”. Even in the local treaty ports, “viceroys, governors and taotais constantly consulted and acted in conformity with the advice of the commissioner”.2
Hart was acutely aware that the fate of the CMCS was tied to the Sino-foreign treaties. The CMCS was directly or indirectly involved in negotiating more than 60 Chinese-foreign treaties and agreements, both bilateral and multilateral, some concerning sovereignty and some focusing on specific issues. In effect, it served as a buffer against direct confrontation between China and the West, preventing the immediate collapse of the late Qing regime and thus sustaining the legitimacy of its existence.
The Making of a “Panopticon”
To regulate the service efficiently and make it competitive, Hart established modern and centralized bureaucratic governance by means of a customs law system. As Hans van de Ven concluded, “Hart turned the CMCS into a Foucauldian panopticon, not inappropriately, given Hart’s utilitarian instincts, by turning the Inspectorate General, its headquarters, into a monitoring center from which he supervised, managed, coordinated, and controlled the Service’s Custom Houses”.3
The internal legal order can be understood as two aspects: the fixed customs laws, including treaties, quasi-treaties, and other rules and regulations, and the flowing institutionalized instruments, with circulars of the Inspector General as their core.
The former provided the basic structure for the customs law order by serving as the legal origin of the CMCS. For example, the Rules of Trade Appended to the Treaty of Tianjin provided the treaty base for the foreigners managing customs in China. On this foundation, the Foreign Inspectors and the Board of Inspectors in Shanghai were developed into the Foreign Commissioners and expanded in each treaty port. The subsequent decades witnessed the consolidation and expansion of their rights and powers by successive unequal treaties. Besides, Hart engaged in the signing of specialized regulations and rules that enjoyed the status of quasi-treaties, like the Yangtze Regulation, Pilotage Regulations, Rules for Joint-Investigation in Cases of Confiscation and Fine by the Custom House Authorities, and others.

In addition, Hart wove a net of institutionalized instruments including circulars, dispatches, semi-official correspondences, and various other formats. Among them, the Inspector General’s circulars were the most universal official documents, issued to each local Commissioner for compliance, and highlighting the diversity and flexibility of the CMCS’s internal administration. These normative instruments had their own formats and functions, distinguishing the service from other Chinese government branches. The regular flow of these instruments brought orders – Hart’s will – into every corner of the service, making it a centralized and vertical management hierarchy. Notably, such a highly law-based customs operation system was unique within the Qing bureaucracy at the time and became a model for later administrative reforms.
The “Reason of CMCS”
To explain why the CMCS played such a central role in legal transformation during the late Qing period, I have introduced the concept of the “reason of CMCS”. This refers to the underlying rationale or driving force behind its actions and evolution. It helps make sense of its preservation and expansion, as well as its pursuit of autonomy and independence. Hart made great efforts that point to the ultimate goal of valuing the well-being of the organization and its members, such as shaping a cohesive and proud identity of customs staff, sidelining the authority of the Chinese superintendents, and resisting intervention in customs affairs by the British authorities as their core.
The “reason of CMCS” could serve as a theoretical tool to understand the various roles it played – as China’s representative, mediator, and backstage conductor, as diplomatic advisor to the Qing court and as accessory to the invasions of Western powers, as executant and beneficiary of Sino-foreign negotiations and as translator for the Chinese party. By its nature, the CMCS was an intermediate force operating in a “contact zone” against a semi-colonial backdrop. Only by focusing on the service itself can we move beyond a state-centric perspective that either makes it purely an advanced force for modernizing China or merely an instrument of imperialist aggression against China.
The CMCS emerged between a faltering Qing court and an overstretched British empire when the old, traditional legal order was collapsing, and the transition to a new legal order was beginning. The making of its external and internal legal order was the manifestation of the “reason of CMCS” and deeply affected the legal transformation of late Qing China. Externally, the international legal order was introduced into China by means of translation, education, and Sino-foreign negotiations, while internally, a rigorous and modern customs law system was constructed and became the template for the government’s institutional and legal reforms. The story of the CMCS challenges a linear narrative of state-driven legal transformation in modern China and offers a new perspective on the emergence of sovereignty in late Qing China.
- See Immanuel C.Y. Hsu, China’s Entrance into the Family of Nations (Harvard University Press, 1960). ↩︎
- H. B. Morse, The International Relations of the Chinese Empire III (Longmans, Green & Co, 1918), 390. ↩︎
- Hans Van de Ven, Breaking with the Past: The Maritime Customs Service and the Global Origins of Modernity in China (Columbia University Press, 2014), 65. ↩︎









