Janchung Gyaltsän was able to defend Phagmodru, and continued to have military successes, until by 1351 he was the strongest political figure in the country. Military hostilities ended in 1354 with Jangchub Gyaltsän as the unquestioned victor, who established the Phagmodrupa Dynasty in that year. He continued to rule central Tibet until his death in 1364, although he left all Mongol institutions in place as hollow formalities.