The formation of hydrogels by photosensitized oxidation and crosslinking of histidine-derived polymers is demonstrated for the first time. The photooxidation of pendant His mediated by singlet oxygen was used to promote covalent coupling by its dimerization. As a proof-of-concept, two systems were studied: (i) chondroitin sulfate (CS) functionalized with His, and (ii) an elastin-like peptide (ELP) containing His produced by recombinant techniques. Both materials were crosslinked by irradiation at 425 nm in the presence of Zn-porphyrin derivatives yielding His-based hydrogels. The molecular structure and physicochemical properties of ELP-His and other 5 ELPs with photooxidizable amino acids were studied in silica by computer simulation. A correlation between the protein conformation and its elastic properties is discussed. CS-His hydrogels demonstrate larger storage moduli than ELPs with other amino acids. The obtained results show the potential use of photooxidation to create a new type of His-based hydrogels.