The mammalian kidneys are a pair of excretory organs of the urinary system of mammals, being functioning kidneys in postnatal-to-adult individuals (i. e. metanephric kidneys). The kidneys in mammals are usually bean-shaped or externally lobulated. They are located behind the peritoneum (retroperitoneally) on the back (dorsal) wall of the body. The typical mammalian kidney consists of a renal capsule, a peripheral cortex, an internal medulla, one or more renal calyces, and a renal pelvis. Although the calyces or renal pelvis may be absent in some species. The medulla is made up of one or more renal pyramids, forming papillae with their innermost parts. Generally, urine produced by the cortex and medulla drains from the papillae into the calyces, and then into the renal pelvis, from which urine exits the kidney through the ureter. Nitrogen-containing waste products are excreted by the kidneys in mammals mainly in the form of urea.
The structure of the kidney differs between species. The kidneys can be unilobar (a single lobe represented by a single renal pyramid) or multilobar, unipapillary (a single or a common papilla), with several papillae or multipapillary, may be smooth-surfaced or lobulated. The multilobar kidneys can also be reniculate, which are found mainly in marine mammals. The unipapillary kidney with a single renal pyramid is the simplest type of kidney in mammals, from which the more structurally complex kidneys are believed to have evolved. Differences in kidney structure are the result of adaptations during evolution to variations in body mass and habitats (in particular, aridity) between species.