The rise of the Nayak family to power occurred after the death of King Vira Narendrasinha, who left no legitimate heir.
[8] The dynasty is noted for its contributions to Sri Lankan religious architecture, especially through the establishment of temples dedicated to their clan deity, Vishnu, also known as Upulvan in Sinhala.
[9] Four Nayak monarchs ruled Kandy, with the last, Sri Vikrama Rajasinha, deposed in 1815 due to the collusion between the Kandyan nobility and the British.
This led to his exile in Vellore Fort, India,[10] and the end of the Kandyan Nayak dynasty, marking the last indigenous rule before Sri Lanka's colonization by the British.
[12][13] The Nayaks of South India started as governors of Vijayanagara Empire ruling parts of Tamil Nadu during the 14th and 15th centuries.
After the Vijayanagara Empire collapsed in the mid-16th century some of these governors declared independence and established their own kingdoms in Gingee, Thanjavur, Madurai and Chandragiri.
[5][6][14][15][16] According to a Telugu work called Sinhaladvipa Katha, the Nayak king Kumara Krishnappa, who reigned at Madurai (1562–1572), is said to have conquered Kandy.
[8] The practice of marrying princesses from Madurai is said to have come into occurrence as the Kandy kings insisted on consorts from the Suryavamsa lineage to grace their coronation and to produce heirs acceptable to the people.
The new king, considered to be a man of considerable culture, devoted his entire attention to the furtherance of the majority religion Buddhism despite being a Hindu.
He is said to have commissioned life sized images of Buddha in recumbent, standing and sitting postures to be cut in the rock caves in various parts of the country.
Since the Madurai Nayaks had now lost the power and prestige they enjoyed in the days of Vijayaranga Chokkanatha, the family members thought it advisable and even desirable to accept the offer from the king of Kandy.
Thus by this peculiar mode of succession the son of Narenappa Nayaka who claimed kingship with the ruling Madurai Nayak family now ascended the throne of Kandy as Kirti Sri Rajasinha.
The king, later with the Dutch assistance got down to learning Bhikkus from Siam (Thailand) for the purpose of advancing Buddhism in Sri Lanka, also building the Raja Maha Vihara (Gangarama) was built at Kandy.
Kirti built the existing inner temple of the Sacred Tooth Relic, and caused the Mahavansa chronicle to be continued from the time of Parâkkamabâhu IV down to his own reign.
The king was not agreeable to any demand that diminished his sovereignty and was deliberately delaying a settlement hoping for help from the English in Madras after his discussion and negotiations with John Pybus 1762.
The British were eager to obtain the monopoly of trading in cinnamon, pepper, betel nut (puwak) from the Kandyan Kings also wanted to expel the Dutch from the coasts.
A reason to call on the British for assistance by the Kandyan King in 1762 was that after the treaty of Paris, the Dutch poured troops into Sri Lanka.
This envoy, a junior Kandyan Official in the military made a clandestine trip to Madras Fort, and the English responded by sending their councillor John Pybus.
John Pybus, a writer of the British East India Company, sailed to Kandy with a backup of five ships and about 200 armed men.
The King gave him a ring, sword, a gold chain with breast jewels and left the country crossing the river at Puttalam pass while the Dissawa who accompanied Pybus presented the ships commander Samuel Cornish a gold chain and a ring in the name of King "Kirti Sri Rajasinha".
The burden fell on Pilimatalava, the first Adigar (Prime Minister) Pilimatalawe, an able, ambitious and intriguing chief, to select a successor to the vacant throne.
The disgraced adigar was replaced by his nephew, Ehelepola, who soon came under suspicion of following his uncle in plotting the overthrow of Sri Vikrama Rajasinha.
After failing to surrender (after 3 weeks of notice), the exasperated king dismissed Ehelepola, confiscated his lands, and ordered the imprisonment and execution of his wife and children.
Ehelepola fled to British-controlled territory, where he persuaded the British that Sri Vikrama Rajasinha's tyranny deserved a military intervention.
Sri Vikrama Rajasinha was captured and sent along with his family and attendants as a royal prisoner by the British to Vellore Fort in southern India.
The palace complex at Kandy includes Sri Lanka's most venerated shrine, the Dalada Maligawa or Temple of the Sacred Tooth Relic.
In Sinhalese culture, Vishnu, hailed as Upulvan, is said to have been entrusted the task of protection of the island of Lanka by Lord Buddha himself.