Excitons are generally formed when a material absorbs a photon, raising an electron to a higher energy state and leaving behind a hole in the lower energy state. This electron-hole pair remains bound due to electrostatic forces, creating an exciton. The binding energy and properties of excitons can vary significantly depending on the material and its nanostructure.