In 1592 Kandy turned into the capital city of the final free kingdom in Sri Lanka after the waterfront districts had been vanquished by the Portuguese. Intrusions by the Portuguese and the Dutch (sixteenth, seventeenth and eighteenth century) and furthermore by the British (most quite in 1803) were repulsed. The last managing tradition of Kandy was the 'Nayaks' of Kandy while the Kingdom saved its freedom until it at long last tumbled to the British in 1815. The British ousted the king, Sri Wikrama Rajasingha, and all petitioners to the position of authority, in this manner finishing the last conventional government of Sri Lanka, and supplanting it with their government.