There are different types of galaxies, but they all share the characteristic of being massive collections of stars, gas, dust, and dark matter held together by gravity.