Kandy is the second-largest city of the island and the capital of the Central Province of modern Sri Lanka. Its geographic location has made it a major transportation hub in the island: while Kandy being the gateway to the Central Highlands of Sri Lanka, the city can be reached by major motorways in every direction of the island. The railway line from Colombo, the seaport on the western coast runs via Kandy to the farthest point of Badulla in the Central Highlands. The main roads Colombo-Kandy and Kandy-Nuwara Eliya[6] are two of the most scenic roads of Sri Lanka; Colombo-Kandy road passes through the rubber, tea plantations and rice paddies, Kandy-Nuwara Eliya road cuts through paddy fields and seamless tea plantations. Both roads claw their way up winding, rounding over the rings of hills. Currently, feasibility studies are afoot for another highway between Colombo and Kandy via Kadawata and the scenic city of Katugastota
Historical records suggest that Kandy was first established by the Vikramabahu III (1357–1374 AD), who was the monarch of the Kingdom of Gampola, north of the present city, and named Senkadagalapura at the time.
In 1592 Kandy became the capital city of the last remaining independent kingdom in the island after the coastal regions had been conquered by the Portuguese. Several invasions by the Portuguese were repelled, most notably in the campaign of Danture. After the Sinhalese–Portuguese War and the establishment of Dutch Ceylon, attempts by the Dutch to conquer the kingdom were repelled.
As the capital, Kandy had become home to the relic of the tooth of the Buddha which symbolizes a 4th-century tradition that used to be linked to the Sinhalese monarchy, since the protector of the relic was the ruler of the land. Thus the Royal Palace and the Temple of the Tooth were placed in close proximity to each other.
The last ruling dynasty of Kandy was the Nayaks. Kandy stayed independent until the early 19th century.