Immobilization of membrane-bound proteins in inorganic matrices could allow creation of materials capable of mimicking biological processes. Advances in sol–gel biocomposites have now allowed development of a material that can use light to drive biosynthesis of ATP.