Quantum wells are nanostructures where electron motion is confined in one dimension, allowing freedom in the other two. They are typically created by sandwiching a thin layer of a semiconductor between layers of another semiconductor with a larger bandgap. Quantum wells are fundamental in the design of heterostructure devices like quantum well lasers and high electron mobility transistors (HEMTs).