There are two main types of sweat glands; Eccrine and Apocrine, and there main function is to produce sweat which helps with cooling down.