B cells both originate from and mature in the bone marrow, which is the soft fatty tissue inside bones.