NOVELTY - A photovoltaic device comprises at least two compartments, adjacent to each other, each of them being capable on its own of generating electricity when illuminated by light, each compartment comprising a transparent or semi-transparent substrate, a porous layer of semiconducting material, a charge-transporting agent, and a back electrode, which may be transparent, semi-transparent or non-transparent.    USE - Used for generating electricity from light (claimed). It is e.g. a solar cell.    ADVANTAGE - The solar cell has a higher efficiency, where it can make better use of the whole range of the spectrum of the light source used for irradiation. It easily combines different properties of different materials in one cell. Its production is easy and versatile to perform. Dyes are not damaged or decomposed by any heating steps.    DETAILED DESCRIPTION - A photovoltaic device comprises at least two compartments, adjacent to each other, each of them being capable on its own of generating electricity when illuminated by light, each compartment comprising a transparent or semi-transparent substrate, which is electrically conducting, or a transparent or semi-transparent substrate made conducting through an additional conducting layer, e.g. a layer of transparent conducting oxide; a porous layer of semiconducting material, which porous layer comprises a dye; a charge-transporting agent, in contact with the porous layer of semiconducting material, the porous layer of semiconducting material having pores, which may be at least partially filled by the charge-transporting agent; and a back electrode, which may be transparent, semi-transparent or non-transparent. A first compartment of the at least two compartments, comprises a first transparent or semi-transparent substrate, which is electrically conducting, or which is made conducting through an additional first conducting layer, e.g. a layer of transparent conducting oxide; a first porous layer of semiconducting material, which first porous layer comprises a first dye; a first charge-transporting agent, in contact with the first porous layer of semiconducting material, the first porous layer of semiconducting material having first pores, which may be at least partially filled by the first charge-transporting agent; and a first back electrode, which is semi-transparent or transparent. A second compartment of the at least two compartments comprises a second transparent or semi-transparent substrate, which is electrically conducting, or which is made conducting through an additional second conducting layer, e.g. a layer of transparent conducting oxide; a second porous layer of semiconducting material, which second porous layer comprises a second dye; a second charge-transporting agent, in contact with the second porous layer of semiconducting material, the second porous layer of semiconducting material having second pores, which may be at least partially filled by the second charge-transporting agent; a second back electrode, which is transparent, semi-transparent or non-transparent, e.g. reflective; and optionally, a third substrate, where at least two compartments make contact to each other between the first back electrode and second transparent substrate, directly or through an intermittent material, preferably arranged in a layer, which intermittent material layer has the same refractive index as the first and/or second transparent substrate.    DESCRIPTION OF DRAWING(S) - The figure is a structure of a tandem dye-sensitized solar cell.