Whence is an adverb that means from what place, source, or cause. It also means by reason of which fact. We can use it in a sentence as follow:
She returned to the market from whence she came.
The work is slow and dangerous, whence the high costs
Whence did you come?
From whence is she?