A training ship is a ship used to train students as sailors. The term is mostly used to describe ships employed by navies to train future officers. Essentially there are two types: those used for training at sea and old hulks used to house classrooms. As with receiving ships or accommodation ships, which were often hulked warships in the 19th Century, when used to bear on their books the shore personnel of a naval station (as under section 87 of the Naval Discipline Act 1866, the provisions of the act only applied to officers and men of the Royal Navy borne on the books of a warship), that were generally replaced by shore facilities commissioned as stone frigates, most "Training Ships" of the British Sea Cadet Corps, by example, are shore facilities (although the corps has floating Training Ships also, including TS Royalist).
The hands-on aspect provided by sail training has also been used as a platform for everything from semesters at sea for undergraduate oceanography and biology students to character-building for youths.