The Hering-Breuer reflex is a protective mechanism that prevents over-inflation of the lungs by inhibiting inspiratory neurons, triggered by stretch receptors in the lung tissue. This reflex plays a crucial role in regulating the rhythm of breathing, especially in newborns and during exercise.