Synthesis of organic materials and smal molecules, and their application in optoelectronic devices for energy production and conversion, such as dye-sensitized solar cells and photoelectrochemical cells for solar fuels. Electrochemical and photoelectrochemical characterization of the devices. Special attention is devoted to the investigation of sustainable methodologies throughout the process, such as the use of unconventional solvents, wastewater and seawater.