Witnessing a document

person writing on white paper

What does a witness do exactly? Why is a witness’ signature important both for legally and non-legally binding documents? Have a look here!