Quantum confinement occurs when the size of a material is comparable to the de Broglie wavelength of electrons. This results in discrete energy levels rather than continuous bands. In nanostructures like nanowires, quantum wells, and quantum dots, quantum confinement can lead to significant changes in electronic properties. This phenomenon is exploited in various nanotechnology applications, such as in light-emitting diodes (LEDs) and transistors.