The high mortality and enormous economic burden of bacterially infected wounds remains a huge challenge for human health. The development of ideal wound dressings with desirable antibacterial and good wound healing properties still remains a major problem affecting the regeneration of bacterially infected wound tissue. Herein, we present novel alginate-based hydrogel microspheres containing lysozyme and MXene (i-Lyso@Alg), in which the positively charged lysozyme is immobilized on the negatively charged MXene by electrostatic interaction. Due to the presence of MXene, i-Lyso@Alg exhibits good thermal effect, drug release behavior and strong antibacterial activity under near-infrared (NIR) irradiation. The synthesized i-Lyso@Alg can realize not only improvement of lysozyme stability but also photothermal responsive up-regulation for biocatalysis of lysozyme. The excellent antibacterial activities of i-Lyso@Alg were attributed to the photothermally enhanced lysozyme activity, assisted by bacterial death caused by local thermal effect of photothermally activated MXene and the physical damage due to the MXene. In addition, in the infected skin wounds of rats, i-Lyso@Alg + NIR significantly accelerates the wound healing process by inhibiting the expression of inflammatory factors and bacterial (Staphylococcus aureus) infection, and inducing the expression of pro-angiogenic factors and tissue remodeling. Overall, the results of this study introduce a pioneering approach by integrating the unique photothermal properties of MXene with the enzymatic action of lysozyme within an alginate-based hydrogel microsphere. This synergistic system not only advances the frontier of antibacterial wound dressings but also represents a significant step towards effective management of infected wounds, which possesses great potential in clinical treatment of infected wounds.