A submarine (often shortened to sub) is a watercraft capable of independent operation underwater. (It differs from a submersible, which has more limited underwater capability.) The term "submarine" is also sometimes used historically or informally to refer to remotely operated vehicles and robots, or to medium-sized or smaller vessels (such as the midget submarine and the wet sub). Submarines are referred to as boats rather than ships regardless of their size.
Although experimental submarines had been built earlier, submarine design took off during the 19th century, and submarines were adopted by several navies. They were first used widely during World War I (1914–1918), and are now used in many navies, large and small.