Meanwhile, Rana Bahadur Shah's youth had been spent in pampered luxury. In 1794 Rana Bahadur came of age, and his first act was to re-constitute the government, with his uncle, Bahadur Shah, removed from all official position. 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. Such acts earned Rana Bahadur notoriety both among courtiers and common people, especially among Brahmins.