Production of flexible solar foils comprises transferring thin films made of polymers permeated with bacteriorhodopsin onto metallised foils and/or foils having an electrically conducting layer, and joining them to transparent electrically conducting foils as counter electrode.