A Galaxy contains large groups of stars planets gas and dots this matter must be held together for the Galaxy will break apart what is responsible for holding the stars planets gas and dust together in a galaxy

Gravity is responsible for holding together the stars, planets, gas, and dust in a galaxy. Gravity is the force of attraction between objects with mass, and it is what keeps all the matter in a galaxy bound together in a cohesive structure. Without gravity, the stars, planets, gas, and dust within a galaxy would drift apart and the galaxy would break apart.