Infected wounds produce pus and heal slowly. To address this issue, we developed a rapid-setting SP/SA@BP-C hydrogel by combining sodium alginate (SA) and soy protein (SP) with black phosphorus (BP) grafted with clarithromycin (Cla) and incorporating Ca2+ for chelation. This hydrogel dressing exhibits excellent photothermal (PT) and photodynamic (PD) bacteriostatic effects without biotoxicity, making it suitable for treating infected wounds. Characterization confirmed its successful fabrication, and the bacteriostatic effect demonstrated over 99 % efficacy through the synergistic effects of PT, PD, and Cla. Cellular studies indicated nontoxicity and a promoting effect on cell proliferation (121.6 %). In the mouse-infected wound model, the hydrogel led to complete healing in 12 days, with good recovery of the skin's superficial dermal layer and appendages. Consequently, SP/SA@BP-C is a natural hydrogel dressing with promising properties.