It answers the question "from where?" or "from what source?"
Here are some examples:
* Whence did you come?
* I know not whence he came.
* The river flows whence the mountains rise.
While less common in modern usage, it's still a valid word and adds a touch of formality or poetic language to your writing.