NOVELTY - An erbium (Er3+), ytterbium (Yb3+) codoped titanium dioxide dye-sensitized solar cell preparing method involves adding titanium isopropoxide with anhydrous ethanol to obtain a solution A, and mixing Er3+ and Yb3+ to obtain solution B. The solution A is mixed with solution B to obtain mixed solution, fluoride ions are added to mixed solution to obtain crude product. The product is transferred to an autoclave, and cooled to obtain a precipitate, and precipitate is washed to obtain luminescence powder. The powder is mixed with ethyl cellulose, to obtain powder slurry followed by coating.    USE - Method for preparing erbium, ytterbium codoped titanium dioxide dye-sensitized solar cell.    ADVANTAGE - The solar cell has high photoelectric conversion efficiency.    DETAILED DESCRIPTION - An erbium (Er3+), ytterbium (Yb3+) codoped titanium dioxide (TiO2) dye-sensitized solar cell preparing method involves adding 98% titanium isopropoxide with anhydrous ethanol to obtain a solution A, and mixing Er3+ and Yb3+ to obtain an aqueous solution B. The solution A is mixed with solution B to obtain mixed solution having Er3+ and Ti mol ratio of 1: 150-160, while stirring the solution A is added. The pH value of the mixed solution is adjusted to 4-7, stirred at room temperature for 20-40 minutes, solution of fluoride ions are added mixed solution to obtain crude product. The crude product is transferred to an autoclave at 100-300 degrees C for 12-72 hours, to give product. The product is cooled to room temperature, and centrifuged at 8000-15000 rpm for 1-3 minutes, to obtain a precipitate, and the precipitate is washed with deionized water for 1-4 times, anhydrous ethanol for 1-2 times, and washed precipitate is placed in a vacuum oven at 80-120 degrees C for 1-3 hours, placed in a muffle furnace at calcining at 400-700 degrees C for 0.5-4 hours under cooling to room temperature, to obtain Er3 + and Yb3 + Co doped TiO2xFx conversion luminescence powder. The conversion luminescence powder is mixed with ethyl cellulose, terpineol and ethanol according to a mass ratio: (0.1-0.3): (3-5): (2-4) and stirred to obtain a uniform powder slurry followed by coating by using P25 sizing agent to obtain P25 sizing agent film with thickness of 3-5 mu m, placing anode in the light of the muffle furnace, at 0.5-3 degrees C/minutes, raising the temperature to 400-600 degrees C for 10-30 minutes to obtain finished product, where x is 0-2.