Nanoantennas work by interacting with light at scales smaller than the wavelength of the light itself. This interaction is facilitated by plasmonic materials, which can support oscillations of free electrons when exposed to electromagnetic fields. These oscillations, known as surface plasmons, enable the nanoantenna to concentrate and manipulate light efficiently at the nanoscale.