Abstract. Double chamber microbial fuel cell with anaerobic and aerobic was used in treatment of coking wastewater. The influence of electrode materials, initial COD and temperature on the power generation performance of microbial fuel cell was investigated. The results shown that, the electricity production performance of the carbon fiber electrode was high about 35% than the carbon paper electrode. when coking wastewater initial COD of 800 mg/L, the operation conditions of temperature of 35℃, the electricity generation performance was best, the average current density is 3.5 mA/m 2 . COD removal rate more than 70%.Generate electricity in wastewater treatment, is a kind of green power industry, which has well development prospects.