It was when the 5th Dalai Lama Ngawang Lobsang Gyatso succeeded in establishing the Ganden Phodrang government and Gelug supremacy in Tibet, with the help of the Güshi Khan of the Khoshut Khanate, that the post took on the dual role of political and religious leadership (however, the 9th–12th Dalai Lamas died before adulthood). After Lobsang Gyatso's mortal passing in 1682, which was kept a secret for 15 years, there was a period of anarchy and invasions that eventually led to the establishment of Qing protectorate over Tibet in 1720 that would reach its peak in the 1790s in response to attacks by Nepal, be renewed in 1903 when the British invaded, and would last until 1912. Tibet became independent with the demise of the Manchu Qing dynasty and would remain so until 1950.