The activities of biological molecules usually rely on both of intra-molecular and intermolecular interactions between their function groups. These interactions include interonic attraction theory, Van der Waal’s forces and the function of geometry on the individual molecules, whether they are naturally or synthetic. The purpose of this study was to evaluate the antibacterial activity of C-F bond compound using combination of experiments verification and theoretical calculation. We target on the insect natural products from the maggots of Chrysomyis megacephala Fabricius. Based on density functional theory(DFT) and B3LYP method, a theoretical study of the C-F bond on fluoride was designed to explore compounds 2 and 4 antibacterial structure–activity relationship. With the progress in DFT, first-principle calculation based on DFT has gradually become a routine method for drug design, quantum chemistry and other science fields.