Porous TiO2 electrodes were prepared by oxidizing two-dimensional titanium carbide nanosheets (Ti3C2 MXene) and the electrodes were tested in dye-sensitized solar cells. The effects of oxidation temperature and duration time together with various thicknesses on the device performance were investigated. A power conversion efficiency of 2.66% was observed