A quasar is an extremely luminous active galactic nucleus (AGN), in which a supermassive black hole with mass ranging from millions to billions of times the mass of the Sun is surrounded by a gaseous accretion disk. As gas in the disk falls towards the black hole, energy is released in the form of electromagnetic radiation, which can be observed across the electromagnetic spectrum. The power radiated by quasars is enormous; the most powerful quasars have luminosities thousands of times greater than a galaxy such as the Milky Way. Usually, quasars are categorized as a subclass of the more general category of AGN. The redshifts of quasars are of cosmological origin.