NOVELTY - A dye-sensitized solar cell comprises a transparent conductive substrate, porous nano semiconductor film, photosensitizer for capturing photon, titanium oxide gel electrolyte and pair of electrode. The electrolyte comprises a titanium oxide precursor sol, ionic liquid, iodine, iodide, modifier and organic solvent. The ionic liquid is mixed with organic solvent to form a mixed solvent. A concentration of iodine relative to mixed solvent is 0.01-1 mol/L. A concentration of iodide relative to mixed solvent is 0.01-1 mol/L. A concentration of modifier relative to mixed solvent is 0.1-5 mol/L.    USE - A dye-sensitized solar cell.    ADVANTAGE - The solar cell has low cost and simple preparation method having easy to control process; and has high stability and photoelectric properties, thus making it suitable for industrial production. The electrolyte components are uniformly distributed with better performance.    DETAILED DESCRIPTION - A dye-sensitized solar cell comprises a transparent conductive substrate, porous nano semiconductor film, photosensitizer for capturing photon, titanium oxide gel electrolyte and pair of electrode. The electrolyte comprises a titanium oxide precursor sol, ionic liquid, iodine, iodide, modifier and organic solvent. The ionic liquid is mixed with organic solvent at any volume ratio to form a mixed solvent. A concentration of iodine relative to mixed solvent is 0.01-1 mol/L. A concentration of iodide relative to mixed solvent is 0.01-1 mol/L. A concentration of modifier relative to mixed solvent is 0.1-5 mol/L. A solution formed by titanium oxide precursor sol, ionic liquid, iodine, iodide, modifier and organic solvent is based at any volume ratio. An INDEPENDENT CLAIM is included for preparation of dye-sensitized solar cell comprising:    (A) preparing stable titanium oxide precursor sol by hydrolyzing or alcoholizing titanium compound, adding iodine, iodide and modifier into a mixed solvent formed by ionic liquid and organic solvent, stirring, ultrasonically processing, uniformly mixing, mixing mixed solution with titanium oxide precursor sol, stirring, ultrasonically processing, and uniformly mixing; and    (B) vacuum heating or ultrasonically heating the mixed liquid until volatile components are removed to obtain a sticky or solid titanium oxide gel electrolyte, coating the titanium oxide gel electrolyte to a surface of working electrode of dye-sensitized solar cell by screen printing, blade coating, roller coating or spin coating, closing the pair of electrodes, and assembling the cell.