A galaxy is a group of stars, dust, and gas held together by gravity. Galaxies can range in size from small dwarf galaxies with a few hundred million stars to giant elliptical galaxies with trillions of stars.