Gnats are often attracted to moist, warm areas with decaying organic matter. This could be anything from a damp mop head in the corner of your kitchen, to wet soil in an indoor plant pot. They may also enter through open windows or doors and come from outside sources such as compost piles or standing water near your home. To get rid of them, you should remove any potential food sources (such as overripe fruit), clean up any spills or messes quickly, make sure all windows and doors are closed tightly when not in use, and vacuum regularly. If the problem persists after these steps have been taken, contact a professional pest control service for further assistance.