Gene rearrangement occurs in programmed steps in the bone marrow during B-cell development. The process starts with a committed stem cell, continues through pro‒B and pre‒B cell stages, and results in an immature B cell.