Infections are a dreaded threat that can have fatal consequences after an operation, in the treatment of wounds, and during tissue engineering. Biomimetic hydrogels with ‘built-in’ antimicrobial properties can significantly decrease this danger. Scientists have now introduced a gel that is activated by red light to produce reactive oxygen compounds that effectively kill bacteria and fungi.