Sweat glands are tubes in which sweat is produced and then transported to the surface of the skin. Many people think of sweat as rather unpleasant, but it does serve an important purpose. Also referred to as perspiration, sweat serves to cool the body off.