Mucus in poop?

Does anyone know what causes mucus in poop? My husband has been having it for 3 or 4 days.