 In 1794 King Rana Bahadur Shah came of age, and his first act was to re-constitute the government such that his uncle, Bahadur Shah, had no official part to play.In mid 1795, he became infatuated with a Maithili Brahman widow, Kantavati Jha, and married her on the oath of making their illegitimate half-caste son (as per the Hindu law of that time) the heir apparent, by excluding the legitimate heir from his previous marriage.By 1797, his relationship with his uncle, who was living a retired life, and who wanted to seek refuge in China on the pretext of meeting the new emperor, had deteriorated to the extent that he ordered his imprisonment (on 19 February 1797) and his subsequent murder (on 23 June 1797).