The meullary cavity is the central cavity of bone shafts where yellow marrow (adipose tissue) is stored. Located in the main shaft of the bone (diaphysis), the medullary cavity has walls composed of compact bone and is lined with a thin, vascular membrane (endosteum).