Use of a fungal biomass for treating industrial wastewaters containing at least one dye and related method, wherein:i. the fungal biomass contains at least the fungal species Rhizomucor pusillus (Lindt) Schipper;ii. the fungal biomass absorbs the at least one dye, so as to obtain wastewater that is basically free of the at least one dye.