Shortly before the outbreak of the Sino-French War Zhang was appointed imperial commissioner with responsibility for the defence of Fujian province.
Zhang had made no serious attempt to coordinate the resistance of the Fujian fleet, and was demoted by the Empress Dowager Cixi on 19 September 1884 and replaced as Fujian defence commissioner by the veteran general Zuo Zongtang (左宗棠) [REF].