When light interacts with a metallic nanoparticle, the incident photons can excite the free electrons on the surface of the metal. This excitation creates a resonance condition known as a surface plasmon resonance (SPR). The particular conditions under which SPR occurs depend on factors such as the size, shape, and material of the nanoparticle, as well as the surrounding medium.