Viharaya is also a main building built in Gampola. Kingdom of Kotte After winning the battle, Parakramabahu VI sent an officer named Alagakkonar to check the new kingdom of Kotte. Kingdom of Sitawaka The kingdom of Sithawaka lasted for a short span of time during the Portuguese era. Vannimai Vannimai, also called Vanni Nadu, were feudal land divisions ruled by Vanniar chiefs south of the Jaffna peninsula in northern Sri Lanka. Pandara Vanniyan allied with the Kandy Nayakars led a rebellion against the British and Dutch colonial powers in Sri Lanka in 1802. He was able to liberate Mullaitivu and other parts of northern Vanni from Dutch rule. In 1803, Pandara Vanniyan was defeated by the British and Vanni came under British rule. Crisis of the Sixteenth Century (1505–1594) Portuguese intervention The first Europeans to visit Sri Lanka in modern times were the Portuguese: Lourenço de Almeida arrived in 1505 and found that the island, divided into seven warring kingdoms, was unable to fend off intruders. The Portuguese founded a fort at the port city of Colombo in 1517 and gradually extended their control over the coastal areas. In 1592, the Sinhalese moved their capital to the inland city of Kandy, a location more secure against attack from invaders. Intermittent warfare continued through the 16th century. Many lowland Sinhalese converted to Christianity due to missionary campaigns by the Portuguese while the coastal Moors were religiously persecuted and forced to retreat to the Central highlands. The Buddhist majority disliked the Portuguese occupation and its influences, welcoming any power who might rescue them. When the Dutch captain Joris van Spilbergen landed in 1602, the king of Kandy appealed to him for help. Dutch intervention Rajasinghe II, the king of Kandy, made a treaty with the Dutch in 1638 to get rid of the Portuguese who ruled most of the coastal areas of the island. The main conditions of the treaty were that the Dutch were to hand over the coastal areas they had captured to the Kandyan king in return for a Dutch trade monopoly over the island. The agreement was breached by both parties. The Dutch captured Colombo in 1656 and the last Portuguese strongholds near Jaffnapatnam in 1658. By 1660 they controlled the whole island except the land-locked kingdom of Kandy. The Dutch (Protestants) persecuted the Catholics and the remaining Portuguese settlers but left Buddhists, Hindus and Muslims alone. The