Carbonate-hosted lead-zinc ore deposits and pyrite thus form. Commonly MVT deposits form by the combination of hydrocarbon pyrolysis liberating zinc-lead ions and sulfur to form an acidic solution which dissolves the host carbonate formation and replaces it with massive sulfide accumulations. This may also take the morphology of fault-hosted stockworks, massive tabular replacements and so forth. Porous limestones may form disseminated ores, however most MVT deposits are massive sulfides with knife-like margins between carbonate and sulfide mineralogies. Ore minerals in carbonate replacement deposits are typically lead sulfide, galena, and zinc sulfide sphalerite. Weathered equivalents form anglesite, cerussite, smithsonite, hydrozincite and secondary galena and sphalerite
Primary minerals as basalt, rhyolite, andesite and obsidian) and intrusive rocks (such as granite, granodiorite, gabbro and peridotite) contain primary minerals including quartz, feldspar, plagioclase, muscovite, biotite, amphibole, pyroxene and olivine in varying concentrations. For the classical discussions of the origin of primary ores, see the two publications "Ore Deposits" (1903 and 1913). According to W.A. Tarr (1938) the primary mineral deposits are the result of direct magmatic action; he states that the splitting of magmas results in the basic igneous rocks and their accompanying group of accessory minerals formed by the first crystallization in the magma, on the one hand, and