The olive fruit fly, Bactrocera oleae (Rossi) (Diptera: Tephritidae), is the major insect pest of olive orchards (Olea europaea L.), causing extensive damages on cultivated olive crops worldwide. Due to its economic importance, it has been the target species for a variety of population control approaches including the sterile insect technique (SIT). However, the inefficiency of the current mass‐rearing techniques impedes the successful application of area‐wide integrated pest management programs with an SIT component. It has been shown that insect mass rearing and quality of sterile insects can be improved by the manipulation of the insect gut microbiota and probiotic applications. In order to exploit the gut bacteria, it is important to investigate the structure of the gut microbial community. In the current study, we characterized the gut bacterial profile of two wild olive fruit fly populations introduced in laboratory conditions using next generation sequencing of two regions of the 16S rRNA gene. We compared the microbiota profiles regarding the geographic origin of the samples. Additionally, we investigated potential changes in the gut bacteria community before and after the first exposure of the wild adult flies to artificial adult diet with and without antibiotics. Various genera – such as Erwinia, Providencia, Enterobacter, and Klebsiella – were detected for the first time in B. oleae. The most dominant species was Candidatus Erwinia dacicola Capuzzo et al. and it was not affected by the antibiotics in the artificial adult diet used in the first generation of laboratory rearing. Geographic origin affected the overall structure of the gut community of the olive fruit fly, but antibiotic treatment in the first generation did not significantly alter the gut microbiota community.