Hemolytic disease of the newborn is a condition where the immune system of an Rh-negative mother attacks the red blood cells of her Rh-positive baby, leading to anemia and potentially severe complications. This is prevented by administering Rh immunoglobulin to the mother during and after pregnancy to prevent sensitization to Rh-positive blood cells.