RhoGAM is a medication used to prevent Rh incompatibility between a pregnant woman and her unborn baby. It works by suppressing the immune system's response to Rh-positive blood cells, preventing the development of Rh antibodies that could harm the baby in future pregnancies.