Kingdom of Kotte
Initially a client kingdom of the Kingdom of Kotte, Kandy gradually established itself as an independent force during the tumultuous 16th and 17th centuries, allying at various times with the Jaffna Kingdom, the Madurai Nayak dynasty of South India, Sitawaka Kingdom, and the Dutch colonizers to ensure its survival.