Nanomaterials exhibit quantum effects that alter their optical properties. This quantum confinement results in phenomena such as plasmon resonance, where the collective oscillation of electrons in metal nanoparticles enhances their interaction with light. Additionally, the bandgap of semiconductor nanocrystals can be tuned by changing their size, affecting their absorption and emission spectra.