How does proper handwashing help to protect against getting sick?

How does proper handwashing help to protect against getting sick?