The soft tissue in the center and ends of long bones where blood cells are produced.