Diesel oil contamination is a threat to environment and human health. Many technologies have been developed to address this issue; however, they are costly to be deployed in real-world oil remediation. Adsorption remains to be one of the most economical methods to remove oil from water. Here, we used banana peel biochar (BPBC) immobilized in teabags as an adsorbent for the removal of diesel oil in water. We investigated the adsorption behavior of BPBC under different conditions, examining the influence of adsorbent loading, pH, salinity, and contact time on its efficiency for removing diesel oil in water. Our results show that the sorption capacity of BPBC is significantly affected by the amount of adsorbent used. Lower biochar loadings enhance the sorption capacity due to greater surface area accessibility, while higher loadings lead to decreased efficiency due to pore blockage and reduced surface exposure. Interestingly, the pH of the solution was found to have minimal impact on the sorption process. This is attributed to diesel oil’s hydrophobic and non-polar nature, which leads to its interaction with BPBC being predominantly governed by hydrophobic forces instead of pH-sensitive electrostatic interactions. Salinity emerged as a crucial factor in the adsorption process. An increase in salinity enhances the sorption capacity, likely due to the “salting-out” effect, where higher salt concentrations decrease the solubility of diesel oil, promoting its adsorption onto the biochar surface. Furthermore, the study highlights the importance of contact time, with longer exposure resulting in increased sorption capacity. This trend is explained by the adsorption kinetics, initially characterized by rapid adsorption, followed by a slower, progressive occupation of the biochar’s adsorption sites. The kinetic analysis of the process suggests that the pseudo-second-order model is more suitable, indicating a chemisorption mechanism. The Harkins–Jura isotherm model was identified as the best fit for explaining the isotherm behavior, owing to its capacity to account for the heterogeneous nature of the biochar surface and the formation of multiple adsorbate layers. The optimum conditions for maximum diesel oil removal are as follows: BPBC loading of 0.50 g, a solution pH of 5.00, a salinity concentration of 12,656.57 mg/L, and a contact time of 240 min. Under these conditions, BPBC exhibited an adsorption capacity of 19.04 g/g. In summary, our research establishes BPBC, particularly when contained within teabags, as an efficient and practical adsorbent for diesel oil removal in water. Its effectiveness, superior to other biochar, is mainly due to its porosity and hydrophobic properties. These findings not only enhance our understanding of BPBC’s adsorption capabilities but also underscore its potential for environmental remediation.Graphical