Soft tissue located within bones that produces all blood cells, including the ones that fight infection.