This lecture delves into Lambertian emission and the microcavity effect, focusing on dielectric optical cavities with small footprints that offer three-dimensional light confinement. The Purcell effect, enhancing the spontaneous emission rate for quantum dots, is explored through the Q/V ratio. Various cavities for Purcell effect studies, such as Fabry-Perot and whispering gallery, are discussed. The lecture also covers semiconductor micropillars and two-dimensional photonic crystals, emphasizing the enhancement of light-matter interaction. Automated optimization techniques for PhC slab cavities are presented, along with the historical account of light-emitting diodes, from the first LED operation to the Nobel Prize-winning advancements in blue LEDs.