During the American Revolutionary War, Britain had recruited blacks to fight with it by offering freedom to those who left rebel masters. In practice, it also freed women and children, and attracted thousands of slaves to its lines in New York City, which it occupied, and in the South, where its troops occupied Charleston. When British troops were evacuated at the end of the war, its officers also evacuated American slaves. They were resettled in the Caribbean, in Nova Scotia and in London. Britain refused to return the slaves, which the United States sought in peace negotiations