Line shape refers to the profile of spectral lines, which reveals information about the physical conditions of the emitting or absorbing medium, such as temperature, pressure, and velocity distribution. Understanding line shape is crucial in spectroscopy for identifying substances and determining their properties through analysis of line broadening and shifts.