What is a mucus plug???

Just wondering because I have been having a thick mucus looking something when I wipe and it's freaking me out. Can anyone give me ideas of what else it could still?