As part of efforts to explore overland trade routes between British India and China, Margary was sent from Shanghai through southwest China to Bhamo in Upper Burma, where he was supposed to meet Colonel Horace Browne.
According to Jonathan Spence, Margary was part of a survey team exploring routes from Burma into Yunnan.