The Nayaks of Kandy (a.k.a. Kandy Nayak Dynasty) were the rulers of Sri Lanka with Kandy as their capital from 1739 to 1815. They were also the last dynasty to rule Sri Lanka. They were related to the Madurai Nayak dynasty and to the Tanjore Nayak dynasty. There were four kings of this lineage and the last king, Vikrama Rajasinha, was captured by the British and exiled to Vellore Fort in India