The answer to 'what attracts wasp' is that wasps are attracted to sweet and protein-rich foods, as well as nesting sites. Wasps are scavengers and will feed on sugary drinks, overripe fruits, pet food, and meat scraps. They are also attracted to the smells of cooking and garbage. Wasps build their nests in sheltered areas like under eaves, in attics, or in trees and bushes.
If you have a wasp problem, it's important to identify and remove the attractants in your yard and home. You may also need to locate and remove any active nests. Wasps can be aggressive when defending their nests, so it's best to call a professional pest control technician to handle an active wasp infestation.