Pre-coordinated lanthanide-containing complexes are used to crosslink polyethyleneimine-modified gelatin to form gelatin hydrogel through imine bond formation.