Throughout most of Imperial China, China had been ruled by emperors and empresses who were Han Chinese. However, there were some dynasties where the ruling class was made of Chinese minority groups, such as the Yuan and Qing dynasties. They were ruled by the Mongols and Manchus in that same order.