island of Jamaica fled to the interior and joined the Taíno living there, forming refugee communities. Later, many of them gained freedom during the confusion surrounding the 1655 English Invasion of Jamaica. Some refugee slaves continued to join them through the decades until the abolition of slavery in 1838, but in the main, after the signing of the treaties of 1739 and 1740, the Maroons hunted runaway slaves in return for payment from the British colonial authorities. During the late 17th and 18th centuries, the British tried to capture the maroons because they occasionally raided plantations, and made expansion into the interior more difficult. An increase in armed confrontations over decades led to the First Maroon War in the 1730s, but the British were unable to defeat the maroons. They finally settled with the groups by treaty in 1739 and 1740, allowing them to have autonomy in their communities in exchange for agreeing to be called to military service with the colonists if needed. Certain maroon factions became so formidable that they made treaties with local colonial authorities, sometimes negotiating their independence in exchange for helping to hunt down other slaves who escaped. Due to tensions and repeated conflicts with maroons from Trelawny Town, the Second Maroon War erupted in 1795. After the governor tricked the Trelawny Maroons into surrendering, the colonial government deported approximately 600 captive maroons to Nova Scotia. Due to their difficulties and those of Black Loyalists settled at Nova Scotia and England after the American Revolution, Great Britain established a colony in West Africa, Sierra Leone. It offered ethnic Africans a chance to set up their community there, beginning in 1792. Around 1800, several hundred Jamaican maroons were transported to Freetown, the first settlement of Sierra Leone. Eventually, in the 1840s, about 200 Trelawny Maroons returned to Jamaica, and settled in the village of Flagstaff in the parish of St James, not far from Trelawny Town, which is now named Maroon Town, Jamaica. The only Leeward Maroon settlement that retained formal autonomy in Jamaica after the Second Maroon War was Accompong, in Saint Elizabeth Parish, whose people had abided by their 1739 treaty with the British. A Windward Maroon community is also located at Charles Town, Jamaica, on Buff Bay River in Portland Parish. Another is at Moore Town (formerly Nanny Town), also in the parish of Portland. In 2005, the music of the Moore Town