Mold thrives in damp places, so to avoid them, make sure there are no leakages in your house and if you spot any, get it fixed ASAP.