Bone marrow transplantation is a medical procedure in which healthy bone marrow is transplanted into a patient to replace damaged or destroyed marrow. This procedure is often used to treat various types of immunodeficiencies, as it can restore the body's ability to produce functional immune cells.