In 1853, during the early stages of the Taipings' victories in central China, Legge sent Wat and Wu Wenxiu to Shanghai to negotiate with them for the entrance of Protestant missionaries to occupied Nanjing. After six months in the city, the two men considered the embassy a failure and returned to Hong Kong.