Maharaj Adhirajkumar Chandrarup Shah was the youngest son of Prithvipati Shah and Rani Kulangavati. He is known in the history of Nepal for cleverly settling power struggle in the Royal house of Gorkha between Dal Shah and Udyot Shah after the death of their older brother (Crown Prince) Birbhadra Shah. Chandrarup Shah was appointed as a Regent for his nephew Maharaj Nara Bhupal Shah
Of the senior rani of Prithvipati Shah was born Birdbhadra Shah, who was also the eldest son. He married the daughter of the Raja of Tanhun. She was pregnant, but no one knew of her state when she went away to her father's house, being on bad terms with her mother in law. Birbhadra Shah alone knew that she was pregnant. He was unwell, and calling his youngest brother, Chandrarup Shah, said to him:" Great intimacy has existed between us from our boyhood, and I wish to open my bosom to you alone. My disease seems a serious one, and I have no hope of recovery. My rani is pregnant and has gone to her father's house. If anything happens to me by God's pleasure, you will make inquiries as to the result of her pregnancy, and give her your support." His brother replied that he would carry out his desires to the utmost of his power, life, and wealth, and assuring him that nothing would go amiss in his household, comforted him, and told him to think no more if it. After two or three days Birbhadra Shah died. Chandrarup Shah privately ascertained that the deceased's rani had given birth to Nara Bhupal Shah in Tanahun; but he kept it a secret.
Maharaj Prithwipati Shah ruled Gorkha from 1673 - 1716 A.D. He was highly impressed by Malla art and architecture during his visit to Kathmandu, he constructed temples of goddess Kali, Lord Pashupati, Hanuman (Monkey god) and foot prints of sage Gorakhnath from whom Gorkha derived its name. The image of Pashupati and hanuman are exactly the same as that of Kathmandu valleys. The temple of Goddess Manakamana was also constructed by him.
Maharaj Prithiwipati, being very old began to consider as to the selection of a successor. He reflected that his eldest son had been taken away by God, and had left no heir. He could not give the gaddi to his second son, Dal Shah, as he was excluded by having only one eye. If he gave it to the third, Udyot Shah, it would appear unjust to put a younger son on the gaddi to the prejudice of an elder claimant. His council was divided in its choice. Some were in favor of the second, and others of the third son, and they could not determine to whom to give gaddi. Chandrarup Shah now presented himself to the Raja at a private audience, and said that all the sons of raja could not succeed their father, and the practice heretofore, observed, should still be followed.