Fruit flies like ripe fruits and veggies, damp spots, and trash bins. Keep food in sealed containers, dry surfaces clean, and take out the trash often to stop them.