Recycling food waste by feeding it to insects can result in the continuous production of high-quality animal feed protein and organic fertilizer. However, the bioconversion efficiency and safety of using insects as feed protein for animal breeding are important factors limiting the development of this technology. Therefore, we aimed to optimize the efficiency of bioconversion of food waste using Lucilia sericata maggot (LSM). Sodium selenite (SS) was used to improve the quality and safety of each trophic-level organism. The results showed that an SS concentration of 15 mg kg-1 w.w. in the food waste culture substrate (SS15), the yield and quality of the obtained LSMs were optimal. The total selenium (Se) content of LSMs was 82.4 ± 1.16 mg kg-1 d.w., and non-inorganic Se accounted for 96.4% ± 2.01% of the total Se content. Additionally, the conversion efficiency of food waste was 18.7% higher than that in the control group (p < 0.05). When SS15 was used to raise maggots as a protein substitute for fish meal (commercial feed), the weight of the chickens and the crude protein content were 1.09-1.26 times and 1.09-1.13 times, respectively (p < 0.05), in comparison with the corresponding findings obtained with the use of ordinary maggots and commercial feed. In this group, glutathione peroxidase, superoxide dismutase, catalase, and immunoglobulin A and G activities were significantly higher than those obtained with the other feeds (p < 0.05). During this cyclic utilization process, the total Se content in chickens (0.31 ± 0.05 mg kg-1 w.w. in the breast, 0.19 ± 0.01 mg kg-1 w.w. in the leg, and 0.57 ± 0.01 mg kg-1 w.w. in the liver) significantly increased (p < 0.05). Meanwhile, the Cu and Zn contents in the LSMs and chickens increased, whereas cadmium, lead, chromium, and nickel absorption was inhibited (p < 0.05). Health risk assessment based on the levels of Se and heavy metals showed that Se-enriched chickens produced using this method can be safely consumed.