What Attracts Fruit Flies?

Fruit flies are attracted to rotting fruit. They don’t actually care for the fruit itself. They like to feast on the microbes that are produced when fruit starts to decompose.