Using poly(methyl methacrylate) as polymer host, ethylene carbonate, 1,2-propanediol carbonate and dimethyl carbonate as organic mixture solvents, sodium iodide and iodine as source of I − /I 3 − , a polymer gel electrolyte PMMA–EC/PC/DMC–NaI/I 2 with ionic conductivity of 6.89mScm −1 was prepared. Based on the polymer gel electrolyte, a quasi-solid-state dye-sensitized solar cell (DSSC) was fabricated. The quasi-solid-state DSSC possessed a good long-term stability and a light-to-electrical energy conversion efficiency of 4.78% under irradiation of 100mWcm −2 simulated sunlight, which is almost equal to that of DSSC with a liquid electrolyte.