Why my computer is shtting down

You will need to provide us with your system specs and a little more description on what is happening like when and what are you doing when it shuts down. So put together your specs and try to write a brief description of the problem as it sits now no one can answer your question without being psychic.