On the morning of July 1, 1917, the royalist general Zhang Xun took advantage of the unrest and entered the capital, proclaiming the restoration of Puyi as
Emperor of China at 4 am with a small entourage and reviving the
Qing monarchy which had been abolished on February 12, 1912. The capital police soon submitted to the new government. General Xu later published an edict of restoration that falsified the approval of the president of the republic, Li Yuanhong. He was also supported by several other officials, including Beiyang General
Jiang Chaozong, former Qing war minister
Wang Shizhen, civil affairs minister
Zhu Jiabao, Over the next 48 hours, edicts were proclaimed in an attempt to bolster the restoration, to the astonishment of the general public. On July 3, Li fled the presidential palace with two of his aides and took refuge in the embassy district, first in the French legation and later in the Japanese embassy. Before taking refuge in the Japanese embassy, Li had taken certain measures, including leaving the presidential seal in the Presidential Palace, appointing Vice President
Feng Guozhang as Acting President, and restoring Duan Qirui as Premier, in an attempt to enlist them in the defense of the republic. On July 5, 1917, his troops seized the Beijing–Tianjin railway 40 kilometers from the capital. On the same day, General Zhang left the capital to meet the republicans, his forces further bolstered by Manchu reinforcements. The restored imperial court prepared an edict of abdication for Puyi, but fearful of Zhang's royalist forces, did not dare proclaim it. The attack began the next day, with royalists troops entrenched on the wall of the
Temple of Heaven. Shortly after the fighting began, negotiations resumed, resulting in the royalists giving up their positions. General Zhang, dismayed, fled to the
legations quarter. Once General Zhang had fled, the royalist troops called for a ceasefire, which was immediately granted. ==Aftermath==