(1) Primarily magmatic as an accessory mineral in mafic rocks, as well as hydrothermal through precipitation from metal-bearing solutions over a wide temperature range.
(2) Epigenetic through the circulation of hydrothermal fluids in carbonate rocks (Mississippi Valley type).
(3) Metamorphic through recrystallization and remobilization of pre-existing sulfide accumulations under anoxic conditions.