Vast pockets of material reside among galaxies, a region known as the intergalactic medium. This thin medium isn't void; it's primarily made up of H-atoms and He-atoms, with minor amounts of heavier components. https://galaxygaselement247544.blogmomo.com/87103/intergalactic-medium