In 1911 after the Xinhai Revolution, the Qing Dynasty died. It was the last monarchy of China after thousands of years. The last emperor of the Qing was Puyi. General Zhang Xun tried to put Puyi back on the throne in 1917. Zhang got an army and entered Beijing.