At the nanoscale, the behavior of electrons and photons is governed by quantum mechanics. When the size of a material becomes comparable to the wavelength of light or the exciton Bohr radius, quantum effects dominate, leading to unique optical properties. These changes occur due to the increased surface area to volume ratio and the confinement of electrons in quantum wells.