The T-shirt evolved from undergarments used in the 19th century, through cutting the one-piece union suit underwear into separate top and bottom garments, with the top long enough to tuck under the waistband of the bottoms. With and without buttons, they were adopted by miners and stevedores during the late 19th century as a convenient covering for hot environments.
As slip-on garments without buttons, they originally became popular in the United States when they were issued by the U.S. Navy during or following the Spanish–American War of 1898. These were a crew-necked, short-sleeved, white cotton undershirt to be worn under a uniform. It became common for sailors and Marines in work parties, the early submarines, and tropical climates to remove their uniform jacket, wearing (and soiling) only the undershirt.
They soon became popular as a bottom layer of clothing for workers in various industries, including agriculture. The T-shirt was easily fitted, easily cleaned, and inexpensive, and for those reasons it became the shirt of choice for young boys. Boys' shirts were made in various colors and patterns. By the Great Depression, the T-shirt was often the default garment to be worn when doing farm or ranch chores, as well as other times when modesty called for a torso covering but conditions called for lightweight fabrics.