Fly contamination may arise during the drying of salted fish. Offering natural insecticides can be an effective means of deterring flies from infesting salted fishes. This study aimed to determine the effectiveness of basil leaves (solution and extract) as fly repellents in salted fish. The study proceeded in a series of stages, namely the preparation of solutions and extracts, and the production of salted fish. The salted fish used in this study comprised three-spot gourami fish, which were subjected to three different treatments: a control group without basil filtrate or extract (P1), a group soaked in 10% basil filtrate (P2), and a group sprayed with 10% basil extract (P3). Three observations were conducted for each parameter, specifically the quantity of flies, and temperature and humidity assessments were conducted during the drying process of the fish, while mortality evaluations were carried out on the fly larvae. The study outcomes indicated that the basil solution/filtrate obtained had a yield of 64.09%, and after being concentrated, it produced an extract with a concentration of 32.62%. The specific quantity of flies that arrived, comprising 105 control salted fish immersed in 63 different solutions and sprayed with an extract during the drying process, amounted to 33. The typical temperature range for active flies to land on salted fish is–29-36℃, with a corresponding humidity level of 55-69%. The fly larvae were observed to perish only when subjected to the application of 10% basil extract. The application of basil leaf extract via spraying was more effective in thwarting fly infestations than by immersing the leaves in a solution.