Cervical mucus plug
The mucus plug acts as a protective barrier by deterring the passage of bacteria into the uterus, and contains a variety of antimicrobial agents, including immunoglobulins, and similar antimicrobial peptides to those found in nasal mucus.
Normally during human pregnancy, the mucus is cloudy, clear, thick, and sticky. Toward the end of the pregnancy, when the cervix thins, some blood is released into the cervix which causes the mucus to become bloody. As the woman gets closer to labor, the mucus plug discharges as the cervix begins to dilate. The plug may come out as a plug, a lump, or simply as increased vaginal discharge over several days. The mucus may be tinged with brown, pink, or red blood, which is why the event is sometimes referred to as "bloody show". Loss of the mucus plug by no means implies that delivery or labor is imminent.