In 1792, after the Third Anglo-Mysore War, the East India Company imposed control in Kottayam in violation of an earlier agreement of 1790 which had recognised its independence. Vira Varma, to whom Raja was a nephew, was appointed by the East India Company authorities as the Raja of Kottayam. To meet revenue targets fixed by Company authorities, Vira Varma ordered an exorbitant tax to be collected from the peasantry and this move was met in 1793 by a mass resistance led by Pazhassi Raja, who had always been opposed to the Company's rule. In 1796, the Company made an attempt to arrest Pazhassi Raja, but he evaded capture and instead fought back using guerilla warfare. After a string of serious setbacks, the Company sued for peace in 1797. The conflict was renewed in 1800 over a dispute on Wayanad and after a five-year-long war of insurgency, Pazhassi Raja was killed on 30 November 1805 in a gun-fight at Mavila Thodu (small body of water), in the present day Kerala-Karnataka border.