A mammary gland is an exocrine gland that produces milk in humans and other mammals. Mammals get their name from the Latin word mamma, "breast". The mammary glands are arranged in organs such as the breasts in primates (for example, humans and chimpanzees), the udder in ruminants (for example, cows, goats, sheep, and deer), and the dugs of other animals (for example, dogs and cats) to feed young offspring. Lactorrhea, the occasional production of milk by the glands, can occur in any mammal, but in most mammals, lactation, the production of enough milk for nursing, occurs only in phenotypic females who have gestated in recent months or years. It is directed by hormonal guidance from sex steroids. In a few mammalian species, male lactation can occur. With humans, male lactation can occur only under specific circumstances.
Mammals are divided into 3 groups: monotremes, metatherians, and eutherians. In the case of monotremes, their mammary glands are modified sebaceous glands and without nipples. Concerning most metatherians and eutherians, only females have functional mammary glands, with the exception of some bat species. Their mammary glands can be termed as breasts or udders. In the case of breasts, each mammary gland has its own nipple (e.g., human mammary glands). In the case of udders, pairs of mammary glands comprise a single mass, with more than one nipple (or teat) hanging from it. For instance, cows and buffalo udders have two pairs of mammary glands and four teats, whereas sheep and goat udders have one pair of mammary glands with two teats protruding from the udder. Each gland produces milk for a single teat. These mammary glands are evolutionarily derived from sweat glands.