After the Xinhai Revolution overthrew the Qing, the Ma Clique Generals declared their allegiance to the Republic of China. Unlike the Mongols, Hui Muslims refused to secede from the Republic, and Ma Qi quickly used his diplomatic and military powers to make the Tibetan and Mongol nobles recognize the Republic of China government as their overlord, and sent a message to President Yuan Shikai reaffirming that Qinghai was securely in the Republic.