While only used sparingly during the Napoleonic Wars, fire ships as a distinct class were part of the British Royal Navy until 1808, at which point the use of permanently designated fire ships attached to British squadrons disappeared. Fire ships continued to be used, sometimes to great effect, such as by the U.S. Navy at the Battle of Tripoli Harbor in 1804 and by the British Navy's Thomas Cochrane at the Battle of the Basque Roads in 1809, but for the most part they were considered an obsolete weapon by the early 19th century.