The pc keeps reseting

Feb 9, 2019
1
0
10
My gaming pc that I build piece by piece turns on but after around 30 seconds it turns off and then back on.
Please help. Thank you