The treatment of textile wastewater (TWW) loaded with recalcitrant azo dyes in bioelectrochemical systems (BES) rather than in physicochemical processes is a low-cost and environmentally friendly process. The main objective of this study is to investigate the potential of different saline sediments collected from extreme Tunisian environments for the formation of bioanodes capable ofsimultaneous azo dyes degradation and electric current generation in synthetic (STWW) and real textile wastewaters (RTWW) characterized by a varied composition of azo dyes and a high salinity. The obtained bioanodes and anolytes were studied comparatively by electrochemical, microscopic, analytical, and molecular tools.Based on the UV–visible spectra analysis, the breakdown of the azo bond was confirmed. With RTWW, the BES achieved a chemical oxygen demand (COD) abatement rate of 85%with a current density of 2.5 A/m2. Microbial community analysis indicated that a diverse community of bacteria was active for effluent treatment coupled with energy production. At the phylum level, the electrodes were primarily colonized by proteobacteria and firmicutes, which are the two phyla most involved in bioremediation. The analysis of the microbial community also showed the abundance of Marinobacter hydrocarbonoclasticus and Marinobacter sp. species characterized by their high metabolic capacity, tolerance to extremophilic conditions, and role in hydrocarbon degradation.