I am taken from a mine-What am I Riddle

Riddle

I am taken from a mine, and shut up in a wooden case, from which I am never released, and yet I am used by almost everybody. What am I?

    Answer: Pencil lead