The urinary bladder is a temporary reservoir for urine located in the pelvic cavity. It receives urine from the kidneys through the ureters and stores it, then expels it through the urethra during urination. The bladder has three layers - an outer connective tissue layer, a middle layer of smooth muscle called the detrusor muscle which contracts to empty the bladder, and an inner mucous membrane layer made of transitional epithelium that allows the bladder to distend as it fills with urine. The bladder's blood supply comes from the superior and inferior vesical arteries and it is innervated by both the autonomic and somatic nervous systems.