The supernova classification type is closely tied to the type of progenitor star at the time of the collapse. The occurrence of each type of supernova depends on the star's metallicity, since this affects the strength of the stellar wind and thereby the rate at which the star loses mass.