The heads of matches usually contain the mineral sulfur. Sulfur solidifies from sulfur gas that comes out of volcanoes.