As a military man, MacDonald led the defence of the foreign legations in 1900 which were under siege during the Boxer Rebellion, and he worked well with the Anglophile Japanese Colonel Shiba Goro.