Encapsulating [FeFe]-hydrogenase model compounds in peptide hydrogels dramatically modifies stability and photochemistry.