A novel way to mitigate the greenhouse effect is to use dye-sensitized solar cells (DSSCs) to convert carbon dioxide from the air into useful products, such as hydrocarbons, which can also store energy from the sun, a plentiful, clean, and safe resource.