흑기군
The Battle of Gia Cuc was precipitated by an attempt by the Vietnamese commander Prince Hoàng Kế Viêm, with limited assistance from Liu Yongfu's Black Flag Army, to capture Hanoi from the French during Rivière's absence at Nam Định with the bulk of the available French forces.