Madugalle Nilame was one of the main leaders in the independence struggle of 1817-1818. The British stated that Madugalle Nilame was the rebellion's third main leader. The British imposed
martial law to suppress the fighting and relentlessly killed the
Sinhalese. They were displaced by demolishing and torching fire. Canals and streams were destroyed and plantations and fields were destroyed to starve the rebels. The British and their helpers slaughtered and ate the villager's cattle. The British rulers generously gave liquor to the officers, soldiers and those who helped them. Intoxicated, they raped and killed women and girls. The Governor-General of England,
Robert Brownrigg, published a proclamation on March 19, 1818, which contained the names of rebel leaders, including Nilame, and the amount of rewards to be given to their captors. On September 22, 1818, 70 British invaded
Teldeniya. At that time Nilame led Teldeniya. Following Nilame, the people of Teldeniya did not show allegiance to the British. After about five days, the rebels faltered. A Vidanevara who had served Nilame agreed to hand him to the British. On September 27, British troops, with the help of Vidanewara, fought their way to Madugalle Madugalle village in the palace. The group entered the village on the morning of the 28th. The group entered the Vidanevara's house and hid there to trap Nilame that night. Teldeniya Commanding Officer Captain Dobin became alarmed because he did not receive information about the troops who went to Madugalle village. Then he learned of a gunshot fired from the village. Dobin sent reinforcements. Nilame was informed of the arrival of the troops and fled. The British troops were able to free two Lanci men captured by the Nilame's forces in March 1818. On September 29 Lieutenant Colonel Hardy and his men marched towards Dumbara. On October 1 Colonel Hardy attempted to capture Nilame. The Nilame chased after him but instead seized a stock of military equipment. On October 28 Lieutenant William O'Neill captured a man with a stone gun. Based on the information received, at around 3.00 pm, a group of about 30 troops deployed surrounded a palace near Paravahagama, where Nilame sheltered. When O'Neill entered the palace, Nilame again fled. A group of villagers later learned about his whereabouts and informed the British. On the morning of November 2, with the assistance of the villagers of Nigawella, Pubbiliya, Kongahawela, Udugoda Korale, and Matale, the Seventy-third Regiment's Ensign Suitbread, with a contingent of troops, captured Nilame at the Matale Kaikawala outpost near Elahera. The villagers who captured the Nilame were rewarded with an easier tax system. == Execution ==