Hydrogels with favorable biocompatibility and antibacterial properties are essential in postoperative wound hemorrhage care, facilitating rapid wound healing. The present investigation employed electrostatic adsorption of black phosphorus nanosheets (BPNPs) and nano‑silver (AgNPs) to cross-link the protonated amino group NH3+ of quaternized chitosan (QCS) with the hydroxyl group of hyaluronic acid (HA). The electrostatic interaction between the two groups resulted in the formation of a three-dimensional gel network structure. Additionally, the hydrogel containing AgNPs deposited onto BPNPs was assessed for its antibacterial properties and effects on wound healing. Hydrogel demonstrated an outstanding drug-loading capacity and could be employed for wound closure. AgNPs loaded on the BPNPs released silver ions and exhibited potent antibacterial properties when exposed to 808 nm near-infrared (NIR) radiation. The ability of the hydrogel to promote wound healing in an acute wound model was further evaluated. The BPNPs were combined with HA and QCS in the aforementioned hydrogel system to improve adhesion, combine the photothermal and antibacterial properties of the BPNPs, and promote wound healing. Therefore, the reported hydrogels displayed excellent biocompatibility and hold significant potential for application in the field of tissue engineering for skin wound treatment.