Microorganisms that can reduce CO2 to acetate can be used to generate biofuels. However, CO2 reduction requires an electron source, usually in the form of H2, which is costly to produce and difficult to handle. Now, Sakimoto et al. offer an alternative by showing that the acetogenic bacterium Moorella thermoacetica can use cadmium sulfide (CdS) nanoparticles to harvest electrons from sunlight, instead of H2, to produce acetate. Growing M. thermoacetica in the presence of cadmium and cysteine led to the precipitation of CdS nanoparticles that coated the surface of the bacterium. These nanoparticles enabled the bacterium to use sunlight as an electron source to reduce CO2, resulting in the production of acetate. Notably, this strategy can sustain bacterial growth and has a high yield, with approximately 90% of the electrons being directed towards acetate production.