This hybrid hydrogel demonstrates controlled release of Cur, effectively eradicating bacterial infection in the early stage of wound infection, and the subsequent release of Mg ions (Mg2+) synergistically inhibits the activation of inflammation-related pathways (such as MAPK pathway, NF-κB pathway, TNF-α pathway, etc.), suppressing the inflammatory response caused by infection. Here, TNF is linked to infection.