A new photothermal treatment could help to overcome antibiotic resistance. In this method, an agent transforms near-infrared light into local heating, which kills the pathogens. However, this ‘transformer’ must first be activated. In this case the target bacteria do this themselves. Other types of bacteria do not switch the agent on and remain unharmed.