Biochar was produced by pyrolysing palm tree bark biomass at 500 degrees C for the removal of rhodamine B (RhB) and metronidazole (MET). Fourier-transform infrared spectroscopy (FTIR), Brunauer-Emmett-Teller, X-ray diffraction (XRD), scanning electron microscopy, and energy-dispersive X-ray analyses were used to characterize the biochar. The biochar obtained was crystalline, mesoporous (SBET: 189.157 m(2) g(-1); pore diameter: 2.207 nm), clustered with prominent O-H and C = O functional groups. The pHpzc of the biochar was 7.98, and it adsorbed RhB and MET maximally at pH 3.4 and 7.2, respectively. The Langmuir and Freundlich isotherms described RhB and MET adsorption, respectively, with maximum adsorption capacities (q(max)) of 31.81-224.30 mg/g for RhB and 95.44-26.76 mg/g for MET from 303 to 313 K. Both adsorbates exhibit favourable physisorption processes with pseudo-second-order kinetics, as the most appropriate. The thermodynamic parameter (-Delta G degrees) demonstrates spontaneous adsorption processes for RhB and MET, with spontaneity increasing with temperature for RhB and decreasing with increasing temperature for MET. The adsorption process was endothermic (+Delta H degrees) for RhB and exothermic (-Delta H degrees) for MET. Given its reusability of 96 and 95% for RhB and MET, respectively, mesoporous biochar derived from palm trees is a more promising adsorbent.