The Republic of China was founded in 1912, following the Xinhai Revolution which overthrew the last imperial dynasty of China, the Qing dynasty (1644–1911).