Doping is the introduction of impurities into a nanomaterial to alter its electrical, optical, or magnetic properties. For instance, doping titanium dioxide nanoparticles with nitrogen can enhance their photocatalytic activity, making them more effective for environmental cleanup applications.