The kidneys are a pair of bean-shaped organs located retroperitoneally against the posterior wall of the abdomen on either side of the spine. As part of the urinary tract, the kidneys are responsible for blood filtration and excretion of water-soluble waste in the urine. The kidneys also play a major role in homeostatic processes, including electrolyte concentration, blood pressure, and acid–base regulation. Grossly, they consist of an outer cortex and inner medulla. Microscopic functional units known as nephrons filter the blood through a structure called the glomerulus, and this filtrate is then modified and concentrated as it moves through a complex tubular system. The renal arteries supply the kidneys via a central opening, known as the renal hilum, on its medial side; large renal veins empty directly into the vena cava.