Complex sentence: The Nayaks of Kandy (a.k.a. Nayakar Dynasty) were rulers of Sri Lanka with Kandy as their capital from 1739 to 1815 and also the last dynasty to rule Sri Lanka.
Split into simpler sentences: The Nayaks of Kandy (a.k.a. Nayakar 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.