In recent years, with the vigorous development of the maritime transportation industry, the resulting problem of ship oil pollution has become increasingly prominent. Efficient and thorough treatment of oily wastewater is the key to solving such problems. Microbial fuel cell (MFC) technology is a promising biological treatment method due to its good degradation effect, no secondary pollution, and energy recovery. In this paper, the discarded corn cob materials in nature were selected for high-temperature carbonization at 350°C, and NaOH was used to modify the modified biochar. Then, the coating technology of Ti3C2 MXene, NbC, WC, TaC and other materials was used to modify the surface of biochar, and the biochar anode material was obtained to construct a double-chamber microbial fuel cell device. The properties of the modified anode biochar materials were studied.