In recent years, the research potential in utilizing biochars as adsorbents in adsorption processes has grown due to their eco-friendly and economical nature. However, biochar often possesses a negative surface charge that limits its affinity for binding anions. Nitric acid washing and pretreatment with Coriolus versicolor can break down the lignocellulosic structure in cotton stalk waste, facilitating the subsequent impregnation of Mg and Fe metal oxides. These pretreatment steps can lead to the production of diverse and functionalized biochars with higher adsorption capacities. In this study, cotton stalk waste was first washed with diluted nitric acid and then subjected to biological pretreatment by incubation with C. versicolor, followed by impregnation with Mg and Fe to obtain CV-CS/Fe and CV-CS/Mg biochars. The results showed that the applied pretreatments altered the physicochemical properties and significantly increased the phosphorus adsorption capacity. The adsorption capacities of CV-CS/Fe and CV-CS/Mg biochars were found to be 277.88 and 507.01 mg g-1, respectively. The results indicate that the incorporation of multiple metal oxide impregnates enhances P adsorption. Furthermore, in the kinetic study, pseudo-first-order and pseudo-second-order models provided a well fit, determining chemical adsorption as the main adsorption mechanism for phosphorus adsorption. The biochars demonstrated compatibility with Langmuir-Freundlich models. Overall, the findings suggest the possibility of synthesizing biochars with improved adsorptive properties through pretreatment, and these engineered biochars hold promising potential as effective adsorbents in the field. PRACTITIONER POINTS: Eco-friendly, natural, and economical biochar was synthesized. Biochar was produced via Coriolus versicolor pretreatment. High adsorption capacities of CV-PS/Mg biochars were found to be 507.01 mg g-1. Adsorption capacities of biochars can be improved by pretreatment.