There are two main types of galaxies: spiral galaxies and ring galaxies. Spiral galaxies have a core surrounded by arms that spiral out, while ring galaxies have a ring shape around an empty core, likely caused by passing through another galaxy. Both galaxy types contain gases and dust, but differ in the structure around their cores.