Quasars are generally thought to be the result of galaxies and their two black holes colliding together. When these black holes join, they throw out this material which begins to glow due to the vast amount of pressure. This is why quasars are so bright.