The attacks suffered by crops have led to the use of various control methods, especially against fruit flies. The aim of this work is to study the actions of biological extracts of Gymnanthemum amygdalinum and Allium sativum on Bactrocera dorsalis and their larvae of stages L3. Methodology and results: fruits infested with mango and citrus have been incubated. Mass breeding of lots of 30 individuals was made in 7 boxes in a bottle cut and covered by a mosquito net to allow asparagus. The different dosages are: dosage 1 (25 g of leaves per 250 ml of water), dosage 2 (50 g of leaves per 100 ml of water, dosage 3 (25 g for 150 ml of water), garlic dosage (three garlic cloves and their peels macerated in 150 ml of warm water), mixture of dosage 2 with garlic solution and pure water is sprayed on a sixth batch. The seventh batch is taken as a control and does not undergo any spraying. Every day a contact spray is made on the flies. The spraying of dosage 2 + garlic dosage on Bactrocera dorsalis and their larvae allowed us to record higher mortalities than those had with other dosages. Dosage 2 also recorded significant mortalities compared to other less concentrated dosages but its results are lower than those obtained with cocktail dosage 2 + garlic. The flies from mango and fed with it are more resistant compared to those from citrus fruits and fed with them. Citrus fruit flies are more sensitive to spraying with water than mango flies. Similarly, citrus larvae are also more sensitive to water.