After the Mongols invaded China Kublai Khan established the Yuan dynasty. Imperial rule continued under the Ming and Qing dynasties that followed until the 20th century.