Ehelepola fled to British-controlled territory, where he persuaded the British that Sri Vikrama Rajasinha's tyranny deserved a military intervention. The pretext was provided by the seizure of a number of British merchants, who were detained on suspicion of spying and were tortured, killing several of them. An invasion was duly mounted and advanced to Kandy without resistance, reaching the city on 10 February 1815. On 2 March, the kingdom was ceded to the British under a treaty called the Kandyan Convention.