The main organ of excretion and osmoregulation in vertebrates, through which nitrogenous waste material (usually in the form of urine) and surplus water, ions, etc., are eliminated from the body. In mammals there is a pair of kidneys situated in the abdomen (see illustration). Each has an outer cortex and an inner medulla and is made up of tubular units called nephrons, through which nitrogenous waste is filtered from the blood, with the formation of urine. The nephrons drain into a basin-like cavity in the kidney (the renal pelvis), which leads to the ureter and bladder.