Sweat glands are an important part of the human body's cooling system. There are two types of sweat glands: eccrine and apocrine glands. Eccrine glands are found all over the body and produce sweat that helps regulate body temperature. Apocrine glands are found in specific areas, such as the armpits and groin, and produce a thicker, more odorous sweat that is linked to emotional and stress-related sweating.