Conflict over entry into the war
In February 1917 the U.S. government severed diplomatic relations with Germany and invited the neutral powers, including China, to do the same. This brought on a crisis in the Chinese government. Li opposed the step, but Duan favoured moving toward entry into the war. Parliamentary factions and public opinion were bitterly divided. Sun Yat-sen, now in Shanghai, argued that entering the war could not benefit China and would create additional perils from Japan. Under heavy pressure, parliament voted to sever diplomatic relations with Germany, and Li was compelled by his premier to acquiesce. When the United States entered the war in April, Duan wished China to do the same but was again opposed by the president.
Duan and his supporters demanded that China enter the war and that Li dissolve parliament. On May 23, Li dismissed Duan and called on Gen. Zhang Xun (Chang Hsün), a power in the Beiyang clique and also a monarchist, to mediate. As a price for mediation, Zhang demanded that Li dissolve parliament, which he did reluctantly on June 13. The next day Zhang entered Beijing with an army and set about to restore the Qing dynasty. Telegrams immediately poured in from military governors and generals denouncing Zhang and the coup; Li refused to sign the restoration order and called on Duan to bring an army to the capital to restore the republic. Li requested that Vice President Feng assume the duties of president during the crisis and then took refuge in the Japanese legation. Duan captured Beijing on July 14; Zhang fled to asylum in the Legation Quarter, and this ended a second attempt to restore the imperial system.
Duan resumed the premiership, and Feng came to Beijing as acting president, bringing a division as his personal guard. The two powerful rivals, each supported by an army in the capital, formed two powerful factions: the Zhili (Chihli) clique under Feng and the Anhui clique under Duan. Opposed neither by Li nor by the dissolved parliament, Duan pushed through China’s declaration of war on Germany, announced on Aug. 14, 1917.