Намдинь
The French position in Tonkin on Bouët's arrival in early June 1883 was extremely precarious. The French had only small garrisons in Hanoi, Haiphong and Nam Định, isolated posts at Hon Gai and at Qui Nhơn in Annam, and little immediate prospect of taking the offensive against Liu Yongfu's Black Flags and Prince Hoàng Kế Viêm's Vietnamese. During June the French dug in behind their defences and beat off half-hearted Vietnamese demonstrations against Hanoi and Nam Định. The early arrival of reinforcements from France and New Caledonia and the recruitment of Cochinchinese and Tonkinese auxiliary formations allowed Bouët to hit back at his tormentors. On 19 July "chef de bataillon" Pierre de Badens, the French "commandant supérieur" at Nam Định, attacked and defeated Prince Hoàng Kế Viêm's besieging Vietnamese army, effectively relieving Vietnamese pressure on Nam Định.