Rh immunoglobulin is a medication used to prevent Rh incompatibility in Rh-negative individuals exposed to Rh-positive blood, most commonly during pregnancy or childbirth. It works by binding to Rh-positive fetal red blood cells, preventing the mother's immune system from recognizing and attacking them, thereby avoiding hemolytic disease of the newborn in future pregnancies.