Among other things, Ma helped to carry out Qing policy in Korea in 1880–82 and he took part in the arrest of Taewon'gun.
The same year, Ma reportedly suggested the design of the Korean national flag Taeguk, which is still in use.
In 1884, he also became involved in the China Merchants' Steam Navigation Company, where he worked closely with Tong King-sing.
Ma is the author of Mashi Wentong (???? "Basic principles for writing clearly and coherently by Mister Ma"), the first textbook of Chinese grammar written by a Chinese (there were already several grammars written by Westerners), published in 1898.
Today most scholars believe that Ma's older brother Ma Xiangbo, a famous educator and co-founder of Fudan University, also contributed to the work.Ma had been requested by Li Hongzhang, for whom he had previously worked for since 1880s to assist after the Eight-Nation Alliance stormed Beijing as part of the Boxer Rebellion and died on August 4, 1900 in Shanghai.