Here's a breakdown:
* Quasars are not galaxies: They are active galactic nuclei (AGN), which are the extremely bright centers of some galaxies.
* Quasars are powered by supermassive black holes: These black holes are millions or even billions of times more massive than our Sun.
* The brightness comes from accretion: As material falls into the black hole, it heats up to incredibly high temperatures and emits vast amounts of energy, making the quasar visible across vast distances.
While a quasar might seem like a separate object, it's actually the extremely bright core of a galaxy. The galaxy itself may be a flattened ball shape, but the quasar is just a small, intensely energetic region within its center.
Think of it this way: A quasar is like a powerful spotlight shining from the center of a galaxy. You see the spotlight, but you also know there's a larger object (the galaxy) behind it.