Mucous plug

It is found in the cervix. Formed with mucus and coagulated blood, its consistency evokes that of raw egg white. It protects the uterus (hence the future baby) from external aggression.
It is lost at the beginning of cervical dilatation. It is a harbinger of childbirth.

More about the mucous plug