was displayed on the flagstaff of the captured fortress at Morne Fortune for an hour before being replaced by the Union Jack. Upon the capture of the fort, Moore's superior, Ralph Abercromby, departed the island and placed Moore in charge of the British garrison. Moore remained at this post until falling ill with yellow fever, leading to his return to Britain before 1798. In 1803, the British regained control of the island. Many members of the L'Armee Française dans les Bois escaped into the thick rainforest where they evaded capture and established maroon communities. Slavery on the island continued for a short time, but anti-slavery sentiment was rising in Britain. The British stopped the import of slaves by anyone, white or coloured, when they abolished the slave trade in 1807. France and Great Britain continued to contest Saint Lucia until the British secured it in 1814, as part of the Treaty of Paris, ending the Napoleonic Wars. Thereafter, Saint Lucia was considered one of the British Windward Islands colonies. The institution of slavery was abolished on the island in 1834, as it was throughout the British Empire. After abolition, all former slaves had to serve a four-year "apprenticeship", to accustom them to the idea of freedom. During that period, they worked for their former masters for at least three-quarters of the work week. Full freedom was duly granted by the British in 1838. By that time, people of African ethnicity greatly outnumbered those of ethnic European background. People of Carib descent also comprised a minority on the island. 20th century Saint Lucia's first representative government was introduced in 1924, with the first election taking place in 1925. Many Saint Lucians served during the Second World War, and the conflict visited the island directly during the Battle of the Caribbean, when a German U-boat attacked and sank two British ships in Castries harbour on March 9, 1942. The United States used the island as a military hub during the war, including setting up a secondary naval base in Gros Islet and using what is now the island's international airport as an air force base. Universal suffrage was introduced in 1951 and elections were held the same year. In 1958, Saint Lucia joined the West Indies Federation, although the federation was dissolved just years later in 1962. In 1967, Saint Lucia became one of the six members of the West Indies Associated