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?

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?

Show answer

The lead in a pencil.