Why do people faint?

It's physical, but it's psychological, too.