The present invention relates to an electrode including an electrode material of the same type as the electrode materials used in Li-ion batteries and a colouring agent. The electrode may further include a semiconductor material. The electrode is used for producing a battery which is rechargeable using light.