Photopolymerization is the most widely used method to fabricate hydrogels, which hold great potentials in various fields including biomedical applications, electronic skin and flexible wearable devices. Herein, gold nanoclusters (AuNCs) were employed as both efficient photo-initiators and crosslinkers to prepare polyacrylamide (PAM) hydrogels with good mechanical properties. Firstly, an imidazole-based monomer, ImPAA, was designed and synthesized, serving as an reducing agent and ligand to prepare imidazole-stabilized AuNCs (AuNC@ImPAA) in water. Under white light irradiation, AuNC@ImPAA efficiently initiated the radical polymerization of acrylamide monomers in water via a photocatalytic mechanism. The abundant vinyl groups on the surface of AuNC@ImPAA enabled its role as a multiple covalent crosslinker, endowing the resulting hydrogel with impressive mechanical properties. The maximum tensile strength and fracture strain was 287 kPa and 591 %, respectively. Moreover, triggered by UV light, the embedded AuNC@ImPAA within the hydrogel aggregated and converted into gold nanoparticles (AuNPs), yielding an AuNP/PAM hydrogel. This hybrid AuNP/PAM hydrogel exhibited a good photothermal conversion performance, with an efficiency of 14.14 % under 660 nm laser irradiation, and its potential as a photothermal actuator was demonstrated. Thus, we provide a facile light-mediated strategy to fabricate functional hydrogel.