Bacterial infections accompanied with wound healing often lead to more serious health hazards to patients. Therefore, it is urgent to explore a wound dressing that can promote wound repair while possessing antibacterial capability. Here, we constructed a multifunctional hydrogel dressing by a redox-initiated cross-linking reaction of methacrylated hyaluronic acid (HAMA), 5,10,15,20-tetra (4-methacrylate phenyl) porphyrin (TPP), and dopamine methacrylamide (DMA), named HAMA-TPP-DMA, with broad-spectrum photodynamic antibacterial capability, where the aggregation of TPP photosensitizer units could be greatly inhibited to produce more singlet oxygen. The hydrogel has excellent biodegradability and biocompatibility, providing favorable conditions for wound healing. Furthermore, the incorporation of dopamine into the hydrogel gives the wound dressing with enhanced adhesiveness, benefiting for the wound repair. More importantly, the antibacterial experiments in vitro and mice wound models in vivo showed that the HAMA-TPP-DMA hydrogel can significantly resist bacteria and accelerate the wound healing in mice (the closure rate > 98% after 15 days). Thus, this hydrogel dressing with superior antibacterial infection and wound healing capability provides a promising strategy in wound repair.