In order to study the effect of nitrite and nitrate on the performance of microbial fuel cell, a system combining an anaerobic fluidized bed (AFB) and a microbial fuel cell (MFC) was employed for high-strength nitrogen-containing synthetic wastewater treatment. Before this study, the AFB-MFC had been used to treat high-strength organic wastewater for about one year in a continuous flow mode. The results showed that when the concentrations of nitrite nitrogen and nitrate nitrogen were increased from 1700 mg/L to 4045 mg/L and 545 mg/L to 1427 mg/L, respectively, the nitrite nitrogen and nitrate nitrogen removal efficiencies were both above 99%; the COD removal efficiency went up from 60.00% to 88.95%; the voltage was about 375 ± 15 mV while the power density was at 70 ± 5 mW/m(2). However, when the concentrations of nitrite nitrogen and nitrate nitrogen were above 4045 mg/L and 1427 mg/L, respectively, the removal of nitrite nitrogen, nitrate nitrogen, COD, voltage, and power density were decreased to be 86%, 88%, 77%, 180 mV, and 17 mW/m(2) when nitrite nitrogen and nitrate nitrogen were increased to 4265 mg/L and 1661 mg/L. In addition, the composition of biogas generated in the anode chamber was analyzed by a gas chromatograph. Nitrogen gas, methane, and carbon dioxide were obtained. The results indicated that denitrification happened in anode chamber.