The Sinhalese–Portuguese War was a series of conflicts waged from 1527 to 1658 in Sri Lanka (then known to Europeans as Ceylon) between the native Sinhalese kingdoms against the Portuguese Empire. It spanned from the Transitional to the Kandyan periods of Sri Lankan history. A combination of political and military moves gained the Portuguese control over most of the island, but their invasion of the final independent kingdom was a disaster, leading to a stalemate in the wider war and a truce from 1621. In 1638 the war restarted when the Dutch East India Company intervened in the conflict, initially as an ally of the Sinhalese against the Portuguese, but later as an enemy of both sides. The war concluded in 1658, with the Dutch in control of about half the island, the Kingdom of Kandy the o