The mucus plug starts forming around week 7 of pregnancy, and it helps stop bacteria ... sometime before you go into labor (usually after 37 weeks), or as labor is starting. This happens because ...