Enrichment of sulfur-oxidizing bacteria using S-doped NiFe2O4 nanosheets as the anode in microbial fuel cell enhances power production and sulfur recovery.