During his time, the British who had succeeded the Dutch in the Maritime Provinces had not interfered in the politics of the Kandy. But Pilimatalava, the first Adigar of the king, started covert operations with the British to provoke the King into acts of aggression, which would give the British an excuse to seize the Kingdom. The Adigar manipulated the king into beginning a military conflict with the British, who had gained a strong position in the coastal provinces. War was declared and on 22 March 1803 the British entered Kandy with no resistance, Sri Vikrama Rajasinha having fled. The adigar massacred the British garrison in Kandy in June and restored the king to the throne. Pilimitalava plotted to overthrow the king and seize the crown for himself, but his plot was discovered, and, having been pardoned on two previous occasions, he was executed.