An ocean liner is a passenger ship primarily used as a form of transportation across seas or oceans. Liners may also carry cargo or mail, and may sometimes be used for other purposes (e.g., for pleasure cruises or as hospital ships).
Cargo vessels running to a schedule are sometimes called liners. The category does not include ferries or other vessels engaged in short-sea trading, nor dedicated cruise ships where the voyage itself, and not transportation, is the prime purpose of the trip. Nor does it include tramp steamers, even those equipped to handle limited numbers of passengers. Some shipping companies refer to themselves as "lines" and their container ships, which often operate over set routes according to established schedules, as "liners".
Ocean liners are usually strongly built with a high freeboard to withstand rough seas and adverse conditions encountered in the open ocean. Additionally, they are often designed with thicker hull plating than is found on cruise ships, and have large capacities for fuel, food and other consumables on long voyages.
The first ocean liners were built in the mid-19th century. Technological innovations such as the steam engine and steel hull allowed larger and faster liners to be built, giving rise to a competition between world powers of the time, especially between the United Kingdom and Germany. Once the dominant form of travel between continents, ocean liners were rendered largely obsolete by the emergence of long-distance aircraft after World War II. Advances in automobile and railway technology also played a role. As of 2015, RMS Queen Mary 2 is the only ship still in service as an ocean liner, the RMS Queen Elizabeth 2 having retired a few years prior. Of the many ships constructed over the decades, only eight ocean liners made before 1967 survive.
Ocean liners were the primary mode of intercontinental travel for over a century, from the mid-19th century until they began to be supplanted by airliners in the 1950s. In addition to passengers, liners carried mail and cargo. Ships contracted to carry British Royal Mail used the designation RMS. Liners were also the preferred way to move gold and other high-value cargoes.