On 1 January 1912 Sun Yat-sen became the first President of the Republic of China in Nanjing. Yuan Shikai, operating out of Beijing, sent other northern military commanders a series of telegrams, advising them to oppose Sun's administration. To gain Zhang's loyalty, Yuan sent him a large shipment of military provisions; Zhang sent Yuan an enormous (and costly) ginseng root in return to symbolize their friendship. Zhang then murdered a number of leading figures in his base city of Shenyang (then known as "Mukden"), and was rewarded with a series of impressive-sounding titles by the nearly defunct Manchu court. When it became obvious to Zhang that Yuan would usurp control of the central government, he endorsed Yuan's rule over that of either Sun or the Manchus. After Zhang put down a rebellion in June 1912, Yuan raised him to the rank of Lieutenant-General. In 1913 Yuan attempted to move Zhang away from Manchuria by having him transferred to Mongolia, but Zhang reminded Yuan of his successful efforts to keep local order, and refused.