A method of crosslinking a protein or peptide for use as a biomaterial, the method comprising the step of irradiating a photoactivatable metal-ligand complex and an electron acceptor in the presence of the protein or peptide, thereby initiating a crosslinking reaction to form a 3-dimensional matrix of the biomaterial.