When was the pencil invented?

Around 1565

Records exist of graphite in wood - the basic pencil.