A gland within the skin of mammals that produces surface perspiration. In primates, sweat glands are distributed over the whole body, but in most other mammals they are more localized; for example, in cats and dogs, they are restricted to the feet and around the face.