For a period from mid-1916, the ultraconservative Beiyang Gen. Zhang Xun managed to maintain the unity of the army via collegial contacts and negotiation. As Yuan Shikai had done, the Beiyang generals used their military power to intimidate the parliament into passing legislation they wanted. Following a dispute with President Li Yuanhong over a loan from Japan in early 1917, Duan Qirui declared independence from the government along with most of the other Beiyang generals. Zhang Xun then occupied Beijing with his army, and on 1 July shocked the Chinese political world by proclaiming the restoration of the Qing dynasty. All the other generals condemned this and the restoration soon collapsed. The elimination of Zhang Xun soon afterwards destroyed the balance of power between the rival factions of Feng and Duan and inaugurated a decade of warlordism.