Industrialization and globalization have caused severe environmental problems, such as contaminating water bodies by toxic agents from various industries, generating a significant loss of biodiversity and health risks. Globally, approximately 80% of wastewater is discharged without treatment, worsening the situation. However, in Colombia, initiatives have been taken to improve wastewater management, with ambitious investments and targets to improve treatment infrastructure. Recently, advanced technologies have been developed to treat wastewater, including more efficient and sustainable biological methods, such as using coconut-derived adsorbent biomaterials, rich in useful properties for the adsorption of pollutants in solutions. This research focuses on developing a composite biomaterial using cellulose acetate (CA) extracted from coconut mesocarp and polyhydroxy butyrate (PHB), by the casting method, to treat wastewater. Adsorption tests with the tracer methylene blue (MB) were carried out in the Energy and Environment laboratory of the University of Cartagena. For this, MB solutions were prepared with 5 to 50 ppm concentrations. The analyses showed that the composite biomaterial is thermally stable and has good homogeneity and porosity. At a concentration of 40 ppm and a dosage of 10 mg of adsorbent, the adsorption efficiency was 89%, with an adsorption capacity of 35.98 mg/g. The above indicates that the composite biomaterial is presented as a sustainable, improved, and efficient solution to remove contaminants from wastewater, benefiting the environment and human health.