Why does my computer randomly reboot without warning?

My computer likes to turn itself off and restart itself of its own free will. I do have virus and spyware protection. It doesn't present any error message, it just shuts itself off and reboots no matter what I am doing on it.