They would use sharp pieces of quartz to strike against pyrites. Striking these materials could create sparks hot enough to light tinder and start a fire.
Tinder: Tinder consisted of easily flammable materials like dried leaves, dry twigs, wood shavings, or animal fat that would catch fire when exposed to the sparks