A bioanode based on functionalized ordered mesoporous carbon (f-OMC) as a catalyst and Bacillus subtilis (B. subtilis) as a biofilm for the bioelectrochemical oxidation of organic matter was evaluated for energy generation from pharmaceutical residual water (PRW). The performance of f-OMF was compared to those of nonfunctionalized and functionalized Vulcan XC-72 (C and f-C) and graphite flakes (GF and f-GF), respectively, as well as nonfunctionalized ordered mesoporous carbon (OMC). f-OMC, OMC, f-C and C showed higher biocompatibility with B. subtilis than f-GF and GF. In the dual-chamber microbial fuel cell (MFC), the anode and cathode compartments contained N 2 -saturated PRW and O 2 -saturated KOH (both electrolytes with pH = 9.6), respectively, separated by a Nafion membrane. The cathode was fabricated using Pt/C as the catalyst. Significantly higher performance was obtained from f-OMC + B. subtilis. The cell open circuit voltage was 0.62 V, with maximum j and power density (P cell ) of 854 mA m −2 and 105 mW m −2 , respectively. These values were respectively 2.6, 4.7 and 19 times higher than those obtained from a bioanode composed of Pt/C + B. subtilis.