It's actually made out of a mixture of blood and mucus, and it "blocks the opening of the cervix to prevent bacteria from entering the uterus." When it's time to get ready for labor, your mucus plug is expelled from your body.