Gravity and rotation
Everything in a galaxy orbits around the galaxy’s center. The shape of a galaxy is a result of the individual orbits and their collective rotation. The force of gravity from all the stars, gas, dust, and dark matter holds a galaxy together.
Keywords: Astrophysics, Galaxies, Gravity, Orbits