Many animals rely on chemical cues to recognize and locate a resource, and they must extract the relevant information from a complex and changing odor environment. For example, in moths, finding a mate is mediated by a sex pheromone, which is detected in a rich environment of volatile plant compounds. Here, we investigated the effects of a volatile plant background on the walking response of male Spodoptera littoralis to the female pheromone. Males were stimulated by combining pheromone with one of three plant compounds, and their walking paths were recorded with a locomotion compensator and analyzed. We found that the addition of certain volatile plant compounds disturbed the orientation toward the sex pheromone. The effect on locomotion was correlated with the capacity of the plant compound to antagonize pheromone detection by olfactory receptor neurons, suggesting a masking effect of the background over the pheromone signal. Moths were more sensitive to changes in background compared to a constant background, suggesting that a background odor also acts as a distracting stimulus. Our experiments show that the effects of odorant background on insect responses to chemical signals are complex and cannot be explained by a single mechanism.