Dye-sensitized solar cells have been made by using electrolytes based on a polysilsesquioxane ionic fluid.This is a nanocomposite organic−inorganic material synthesized by the sol−gel route using 1-methyl-3-[3-(trimethoxy-λ4-silyl)propyl]-1H-imidazolium iodide as precursor. This compound is an imidazolium iodidederivatized with covalent attachment of a trimethoxysilane group. Condensation was obtained by formic acidsolvolysis at 120 °C in the absence of water. The obtained materials have been characterized by IR, 29SiNMR and conductivity measurements. Cells have been constructed by using several variants of the aboveelectrolyte and have been characterized by current−voltage measurements.