The presence of molecular bands in the spectrum of a star indicates the presence of molecules in the star's atmosphere. These molecules absorb certain wavelengths of light, creating dark lines in the spectrum. By analyzing the pattern of these lines, astronomers can identify the molecules present in the star's atmosphere.