Answer
Thapa was the regent to King Rajendra Bikram Shah. He fell from power when Queen Tripurasundari, the king's mother, died in 1832. The queen had been a powerful supporter of Thapa and her death left him vulnerable to his enemies. In the same year, Thapa was arrested and imprisoned. He was later executed.