Diabetic wounds arise great attention as they are difficult to heal and easily suffer from serious bacterial infection. However, the overuse of antibiotics increases the resistance of bacteria and makes common drugs ineffective. Here, we developed a photothermal hydrogel (TFP/NP) composed of tremella fuciformis polysaccharides (TFPs) and cuttlefish ink-derived melanin nanoparticles (NPs). The NPs can produce reliable photothermal effects under near-infrared laser (NIR) irradiation and help to remove the bacteria in the wounds, while TFPs were able to form hydrogel frameworks which possessed anti-inflammatory effects and could be applied to promote wound healing. The TFP/NP hydrogels produced stable thermal effects under NIR irradiation and could continuously kill bacteria. The experiment on a full-layer skin wound sMRSA activity and could improve the healing efficiency. The wounds of the mice could be repaired within 14 days after reasonable treatment. In addition, the hydrogels play significant roles in promoting collagen deposition, anti-inflammation, angiogenesis, and cell proliferation during the therapeutic process. This research provides a simple and effective method for the therapy of bacterial infection wounds through the synergistic effect of TFPs and NPs.