Galaxies can form within massive cosmic filaments, which are long chains of galaxies and intergalactic gas.