From 1642 until 1705 and from 1750 to the 1950s, the Dalai Lamas or their regents headed the Tibetan government (or Ganden Phodrang) in Lhasa which governed all or most of the Tibetan Plateau with varying degrees of autonomy under the Qing dynasty of China, in which Tibet had been under non-Tibetan suzerainty, and a period of disputed "de facto independence" between 1913 and 1951. This Tibetan government also enjoyed the patronage and protection of firstly Mongol kings of the Khoshut and Dzungar Khanates (1642–1720) and then of the emperors of the Manchu-led Qing dynasty (1720–1912). In 1913, several Tibetan representatives including Agvan Dorzhiev signed a treaty between Tibet and Mongolia, proclaiming mutual recognition and their independence from China, however the legitimacy of the treaty and declared independence of Tibet was rejected by both the Republic of China and the current People's Republic of China. The Dalai Lamas headed the Tibetan government afterwards despite that, until 1951.