The Kandyan Wars (or the Kandian Wars) refers generally to the period of warfare between the British colonial forces and the Kingdom of Kandy, on the island of what is now Sri Lanka, between 1796 and 1818. More specifically it is used to describe the expeditionary campaigns of the British Army in the Kingdom of Kandy in 1803 and 1815. Background From 1638–58, the Dutch East India company had intervened in the Sinhalese–Portuguese War, capturing all the Portuguese possessions on the island of Ceylon (now called Sri Lanka). They established the colony of Dutch Ceylon, controlling the coasts and lowlands, whilst the Kingdom of Kandy maintained their independence in the mountainous eastern interior. In 1795 the Dutch Republic was overthrown with French assistance, forming the Batavian Republic as a puppet state. Britain, which was at war with France, feared that influence would result in French control or use of the strategically important port of Trincomalee and others on the island. Following the Kew Letters of 1795, the British occupied Dutch possessions in Sri Lanka. These included not only Trincomalee but Batticaloa, Galle, and Jaffna, as well as the entirety of Sri Lanka's lowlying coastal areas. The new colony of British Ceylon was determined to expand and control the entirety of the island, and had reformed traditional social structures like the caste system and the rajakariya (lit. "kingwork", labour and or tithes owed to the Kandyan king). This added to the tension between them and the still independent Kingdom of Kandy. Mountainous central Sri Lanka remained independent, having resisted 250 years of European attempts to control Ceylon. Kandy was now under the rule of the Nayaka kings of Senkadagala. Early British attempts at securing a treaty with mountainous kingdom were rejected. The internal stability of Kandy was shaky, as king Sri Vikrama Rajasinha found himself being constantly undermined and intrigued against by powerful Sinhalese nobles. He also faced a potential usurper in the form of Muttusami, brother-in-law of the previous king Rajadhirajasingha, who had fled to British controlled lands in the early 19th century and had been agitating against the beleaguered king ever since. The earliest British garrison numbered about 6,000 which was increased through the recruitment of local sepoys, and the forces of the Empire further enjoyed exclusive access to the sea. Kandy, in contrast, had the advantage of being situated in difficult, mountainous terrain, and could also draw on