Thermal pulses are brief, intense increases in the luminosity and temperature of a star, typically occurring in the later stages of stellar evolution, particularly in asymptotic giant branch stars. These events are driven by helium shell flashes, which cause significant changes in the star's structure and evolution, leading to mass loss and the eventual formation of a planetary nebula.