renal medulla
The renal medulla contains the renal pyramids, where urine formation takes place. Urine passes from the renal pyramids into the renal pelvis. This funnel-shaped structure occupies the central cavity of each kidney and then narrows as it extends out to join the ureter.