湘軍
Before forming and commanding the Xiang Army, Zeng Guofan had no military experience. Being a classically educated Mandarin, his blueprint for the Xiang Army was taken from a historical source — the Ming general Qi Jiguang, who, because of the weakness of regular Ming troops, had decided to form his own "private" army to repel raiding Japanese pirates in the mid-16th century. Qi Jiguang's doctrine was based on Neo-Confucian ideas of binding troops' loyalty to their immediate superiors and also to the regions in which they were raised. This initially gave the troops an excellent "esprit de corps". Qi Jiguang's army was an ad hoc solution to the specific problem of combating pirates, as was Zeng Guofan's original intention for the Xiang Army, which was raise to eradicate the Taiping rebels. However, circumstances led to the Yongying system becoming a permanent institution within the Qing military, which in the long run created problems of its own for the beleaguered central government.