The number one cause of fruit flies in the home is ripe, rotting, or decaying fruit and produce that are left out. They are also known to be drawn to fermented items like beer, liquor, and wine that are left open.