How to Resolve Windows BSOD?

I am facing a Blue Screen of Death (BSOD) error and it is becoming very frustrating. I am using Windows. The error message isn’t clearly stating exactly what is wrong, and they are all striking at random. Please tell me how I can get rid of this error.
