A republic was formally established on 1 January 1912 following the Xinhai Revolution, which itself began with the Wuchang uprising on 10 October 1911, successfully overthrowing the Qing dynasty and ending over two thousand years of imperial rule in China.