<Tr> <Th> FMA </Th> <Td> 7159 </Td> </Tr> <Tr> <Td_colspan="2"> Anatomical terminology (edit on Wikidata) </Td> </Tr> <P> The urinary system, also known as the renal system or urinary tract, consists of the kidneys, ureters, bladder, and the urethra . The purpose of the urinary system is to eliminate waste from the body, regulate blood volume and blood pressure, control levels of electrolytes and metabolites, and regulate blood pH . The urinary tract is the body's drainage system for the eventual removal of urine . The kidneys have an extensive blood supply via the renal arteries which leave the kidneys via the renal vein . Each kidney consists of functional units called nephrons . Following filtration of blood and further processing, wastes (in the form of urine) exit the kidney via the ureters, tubes made of smooth muscle fibres that propel urine towards the urinary bladder, where it is stored and subsequently expelled from the body by urination (voiding). The female and male urinary system are very similar, differing only in the length of the urethra . </P> <P> Urine is formed in the kidneys through a filtration of blood . The urine is then passed through the ureters to the bladder, where it is stored . During urination, the urine is passed from the bladder through the urethra to the outside of the body . </P>

List the main functions of the urinary system