Rarely, your Mac might need to restart because of a problem with its software or hardware. When it starts up again, you might see a message that says your computer was turned off because of a problem. Most of the time, your Mac restarts by itself because of software or devices that are connected to it.