Answer:
gravity
Step-by-step explanation:
The shape of a galaxy is determined by how it is formed. However, once a galaxy takes on a form, gravity is the force that keeps it together and allows it to hold its form. Without gravity, the stars in a galaxy would fly out into space in all directions.