The apple maggot is a pest that damages apples and other fruits like pears and plums. Its larvae burrow inside the fruit, rotting it from within. To control this pest, homeowners should remove fallen fruit, use sticky traps to monitor for adult flies, and remove unwanted trees that the maggot can use as hosts. Bagging individual fruits helps protect them as well. Chemical sprays target the adult flies but can be reduced through cultural practices like sanitation and trap monitoring.