The blue screen happens when Windows encounters a critical error that stops the operating system from running. These critical errors can be the result of faulty hardware, faulty or low level hardware drivers, or faulty or low level apps that run within the Windows kernel.