In order to solve the problem of low output power of microbial fuel cells, a solution method was proposed to prepare TiO_2/TiC-CC composite electrode materials by sol-gel and coating methods. The microscopic morphology and synthesis of the prepared materials were studied and analyzed by scanning electron microscopy (SEM), Fourier transform infrared spectroscopy (FTIR) and other characterization techniques; the output voltage and cyclic voltammetry characteristic curves of the microbial fuel cell were analyzed by using the battery detection device. and other electrochemical performance tests; use UV spectrophotometer and water quality detector to study the degradation performance of diesel. The results show that the TiO_2/TiC-CC composite has a loose surface and uniform particle distribution, which can effectively ensure the attachment of microorganisms and improve the specific surface area and electrical conductivity of the electrode. Under the synergistic effect of TiO_2 and TiC, the power generation performance of the microbial fuel cell is greatly improved, and the maximum output voltage and maximum output power density can reach 0.52 V and 2261.35 m W/m^2, respectively, compared with the unmodified carbon cloth. It has increased by nearly 24% and 133%; the 7-day degradation rate of diesel oil reaches 86.48%, and the chemical oxygen demand (COD) removal rate is 76.92%, which is higher than that of traditional carbon cloth as MFC anode. and COD removal rate.