In 1882, Li Hongzhang recommended Möllendorff to the position of the adviser to the Korean government and in December 1882, he arrived in
Seoul for his first audience with King
Gojong. Möllendorff quickly learned enough
Korean to be able to communicate with the king and soon earned the trust of the king, who appointed him deputy foreign minister and charged him with the establishment of the Korean Customs Service. Möllendorff adopted the Sino-Korean name Mok In-dok (
Mok Indeok,
Mù Líndé in
Mandarin) and soon became a very influential figure in the Korean government. Möllendorff wanted to assert the independence of Korea and contrary to the wishes of
Li Hongzhang and
Robert Hart, he wanted to make the Korean Customs Service as independent from the Chinese Maritime Customs Service as possible. Möllendorff also advocated that Korea enter into an alliance with the
Russian Empire to counterbalance Chinese and
Japanese influences on the Korean peninsula. In response to this, the British occupied the Korean island of Geomun by force, calling it Port Hamilton. Consequently, the Qing government felt that Möllendorff acted too independently and in 1885 Li Hongzhang forced Möllendorff's resignation from the Korean government. In 1888, King Gojong unsuccessfully tried to reinstate Möllendorff. ==Scholarly work and later life==