Ehelepola then aided the British in launching an invasion of the Kingdom of Kandy and was instrumental in the Kandyan Convention that followed in March 1815, which led to the annexing of Kingdom of Kandy as part of the British Empire.