SERS works by exploiting the interaction between light and metallic nanostructures, typically made of gold or silver. When molecules are adsorbed on these nanostructured surfaces, the local electromagnetic field is intensified, leading to an enhanced Raman signal. This makes it possible to detect and identify even trace amounts of toxic substances.