To prevent Rh incompatibility, Rh-negative pregnant women are given an injection of Rh immunoglobulin (RhIg) (commonly known as RhoGAM) during their pregnancy and after delivery if the baby is Rh-positive. This injection prevents the mother's immune system from producing antibodies against Rh-positive cells.