Ions carried in groundwater precipitate to form new crystalline material in sediment pores: this is how "sediment" becomes "rock". The new pore-filling minerals form "bridges" between original sediment grains, thereby binding them together. So "sand" becomes "sandstone", and "gravel" becomes "conglomerate". 