What causes you to wake up with a black eye?

Getting punched in your sleep.