Chemical communication in the search for a sexual partner in insects is essentially based on sex pheromones. The vinegar fly, Drosophila melanogaster, is a laboratory model par excellence. We experimented with the toxic and sexual behaviour study of adults of D. melanogaster using a bioinsecticide from plants (Azadirachtin). When we treated the larvae of the second stage of the vinegar fly, and in this study, we identified all the stages of sexual behaviour of D. melanogaster. Finally, the treatment with this extract inhibits the secretions of the fermions (Cubiccular hydrocarbons). After exposure to a sublethal concentration of these biological compounds, we found that the bioinsecticide (Azadirachtin) affects the functioning and course of different sequences of sexual behaviour and sexual attraction in males and females, which indicates the inhibitory effect of azadirachtin on the sexual behaviour of the fly.