The ability to recognize a host plant is crucial for insects to meet their nutritional needs and locate suitable sites for laying eggs. Bactrocera dorsalis is a highly destructive pest in fruit crops. Benzothiazole has been found to induce oviposition behavior in the gravid B. dorsalis. However, the ecological roles and the olfactory receptor responsible for benzothiazole are not yet fully understood. In this study, we found that adults were attracted to benzothiazole, which was an effective oviposition stimulant. In vitro experiments showed that BdorOR49b was narrowly tuned to benzothiazole. The electroantennogram results showed that knocking out BdorOR49b significantly reduced the antennal electrophysiological response to benzothiazole. Compared with wild-type flies, the attractiveness of benzothiazole to BdorOR49b knockout adult was significantly attenuated, and mutant females exhibited a severe decrease in oviposition behavior. Altogether, our work provides valuable insights into chemical communications and potential strategies for the control of this pest.