The Castle-class minesweeper was a highly seaworthy naval trawler adapted for patrol, anti-submarine warfare and minesweeping duties and built to Admiralty specifications. Altogether 197 were built in the United Kingdom between 1916 and 1919, with others built in Canada, India and later New Zealand. Many saw service in the Second World War.