Signing a will, having it witnessed – who can be a witness & what is required?

WitnessThe legal formalities to make a valid will require the will-maker to sign their will in the  presence of at least two people, acting as formal witnesses to the event.  Signing a will in front of witnesses fulfils a protective function. Can anyone witness or attest the signing of a will? And what must they do ?