During the reign of the Xianfeng Emperor, the Taiping rebels captured Jiangning (江寧; present-day Nanjing, Jiangsu) and designated it as their capital. The headquarters of the Viceroy of Liangjiang constantly shifted across different locations, including Yangzhou, Changzhou, Shanghai, Suzhou and Anqing.