Sweating is an important way of maintaining body temperature. When our body gets heated it releases moisture in the form of tiny water droplets, which cool the body as it evaporates. Sweating is a way of getting rid of waste material. There are eccrine glands which are under the arms and apocrine glands which are over the rest of the skin that release secretions. Our palms and soles have the maximum number of sweat glands.