Biochar-based magnetic photocatalyst (ZnFe-BC) is successfully prepared by one-pot method using microwave heating for rhodamine B (RB) and malachite green (MG) removal from wastewater. The characterization results show that ZnFe-BC has the properties of adsorption, photocatalytic degradation and magnetism, contributing to RB and MG removal. The adsorption capabilities of RB and MG are 334.89 mg/g and 576.73 mg/g calculated by Langmuir model, respectively. The adsorption data are fitted to the Thomas and Yoon-Nelson model to predict the breakthrough curves of RB and MG in the fixed-bed adsorption. The photodegradation removals of RB and MG are 99.05% and 98.08%, respectively. A good photodegradation performance of ZnFe-BC is attributed to the high adsorption capability of ZnFe-BC, and synergy between biochar and ZnO on ZnFe-BC. The photocatalytic degradation mechanism is investigated by the density functional theory calculation. ZnFe-BC can be quickly recycled from RB or MG solution under extra magnetic field after use. ZnFe-BC still has good removal in binary RB and MG mixture solution. The present work demonstrates a successful example of waste poplar saw dust converting into the sustainable biochar-based magnetic photocatalyst for RB and MG removal from wastewater