Ceylon was a British crown colony between 1815 And 1948. Initially, the area it covered did not Include the kingdom of Kandy, which was a Protectorate from 1815, but from 1817 to 1948 the British possessions included the whole island of Ceylon, now the nation of Sri Lanka.
Before the beginning of the Dutch governance, the island of Ceylon was divided between the Portuguese Empire and the Kingdom of Kandy, who were in the midst of a war for control of the island as a whole. The island attracted the attention of the newly formed Dutch Republic when they were invited by the Sinhalese King to fight the Portuguese. Dutch rule over much of the island was soon imposed.
In the late 18th century the Dutch, weakened by their wars against Great Britain, were conquered by Napoleonic France, and their leaders became refugees in London. No longer able to govern their part of the island e ectively, the Dutch transferred the rule of it to the British, although this
was against the wishes of the Dutch residing there.