The thick outer portion of bone that surrounds the medullary (bone marrow) cavity.