When materials are reduced to nanoscale dimensions, the quantum confinement effect occurs. This effect restricts electron motion, leading to discrete energy levels. For instance, in a quantum dot, electrons are confined in all three spatial dimensions. This confinement results in a discrete energy spectrum, unlike the continuous energy levels in bulk materials. The energy difference between these levels can be tuned by changing the size of the quantum dot, enabling precise control over its properties.