Frequent mining activities have led to an increasing transfer of heavy metals to the soil. Pyrite functionalized Black Soldier Fly feces biochar composite material (BFFS) was synthesized to immobilize Cu and Pb in contaminated mine soil and improve soil quality in our study. Incubation experiments showed that BFFS significantly reduced the leaching rates by 96 % and 90 % for Cu and Pb, respectively, when compared to the control after 220 days. Speciation transformation analysis further revealed that BFFS could significantly reduce easily labile fractions of Cu and Pb, and transformed to recalcitrant fractions. Moreover, BFFS significantly improved the quality of mine soil combined with soil quality index analysis. The potential toxicity and bioavailability of Cu and Pb can still be effectively reduced by BFFS, even during a 90-day field experiment. In addition, the mine soil improved by BFFS further promoted the survival and growth of ramie. Multiple characterization analyses and related experiments indicated that ion exchange, adsorption, complexation, and coprecipitation mainly contribute to the high efficiency immobilization of Cu and Pb by BFFS. These findings could bring some fresh perspectives on the development of immobilization materials and related technologies for the economical, green and sustainable remediation of heavy metals contaminated mine soil.