Main

In Fig. 1 we find that, on average, galaxies in voids assemble 50% and 70% of their stellar mass later than in filaments and walls by 1.03 ± 0.06 Gyr and 1.20 ± 0.05 Gyr, respectively, and much later than in clusters (by 1.91 ± 0.06 Gyr and 2.43 ± 0.05 Gyr). In addition, in Fig. 2, we find that the star formation histories (SFHs) at early times describe a bimodal distribution around this average in the three large-scale environments. We then classify the SFHs into two types: the short-timescale SFH (ST-SFH) is characterized by a high star formation (approximately 27% of the total stellar mass, the peak of the distributions) happening at the earliest time, while the long-timescale SFH (LT-SFH) has a star formation happening more uniformly over time. The distinction between these two types of SFHs allows us to evaluate the role of the large-scale environment in star formation, by comparing the shape of the SFHs and assembly times between all three large-scale environments and also by paying attention to the probability of finding each SFH type in voids, filaments and walls, and clusters (see Extended Data Fig. 1 for the exact shape of an example of an ST-SFH galaxy and an LT-SFH galaxy and the differences between them).

Fig. 1: Average cumulative SFH.
figure 1

Cumulative stellar mass fraction formed at a given look-back time (in Gyr), for galaxies in voids (blue dashed line), filaments and walls (green dot-dashed line) and clusters (purple solid line). The used samples take into account the selection criteria applied by the quality control analysis and are based on different stellar mass distributions. As representative quantities of the stellar mass assembly rate, dotted lines depict the average assembly times of 50% (T50) and 70% (T70) of the stellar mass, for which we find that the differences in SFH are maximal. By definition, T100 = 0 Gyr means that the galaxy forms 100% of its stellar mass today and T70 and T50 are correlated, that is, if T50 is higher in a sample, then the T70 is also higher. In general, the standard error of the mean (1σ) is smaller than the line width of the curves. The number of galaxies is represented in the legend for each large-scale environment.

Source data

Fig. 2: Bimodal distributions of the cumulative SFHs at 12.5 Gyr.
figure 2

Normalized number of galaxies versus the cumulative stellar mass fraction. The samples used take into account the selection criteria applied by the quality control analysis and are based on different stellar mass distributions. The SFHs are classified into ST-SFH or LT-SFH using the vertical dotted line at 21.4% of the stellar mass (relative minimum of the sample of galaxies in filaments and walls and the inflexion point of the sample of galaxies in clusters) as a classification criterion that splits the distributions into two areas which represent the probability of a galaxy having one of the SFH types in each large-scale environment.

Source data

In Fig. 3, it can be seen that galaxies with ST-SFHs assembled, on average, 30% of their stellar mass at early times (approximately 12.5 Gyr ago) and decrease their star formation later in their lives. Galaxies with LT-SFHs, however, have assembled a lower stellar mass fraction (approximately 15%) at early times. By definition, ST-SFH galaxies assemble their stellar mass earlier than LT-SFH. It is more likely for a void galaxy to have a LT-SFH (51.7 ± 0.9%) than for those in filaments and walls (44.5 ± 0.3%) or clusters (36.1 ± 0.5%; see legends in Fig. 3). Galaxies with ST-SFHs, on average, assemble their stellar mass at similar rates in the three large-scale environments. Galaxies with LT-SFHs, on average, assemble 50% and 70% of their stellar mass more slowly in voids than in filaments and walls by 1.05 ± 0.09 Gyr and 0.86 ± 0.06 Gyr, respectively, and much more slowly than in clusters (by 2.38 ± 0.10 Gyr and 2.22 ± 0.07 Gyr). These might be the main reasons why we find in Fig. 1 that galaxies, on average, assemble their stellar mass later in voids than in denser large-scale environments. However, the stellar mass distributions of these galaxy samples depend on the large-scale environment7 (galaxies in voids are, on average, less massive than galaxies in denser large-scale environments; see Extended Data Figs. 2 and 3) and it is necessary to test how these differences affect our results when carrying out further comparisons for a given stellar mass.

Fig. 3: Two types of SFH.
figure 3

Cumulative stellar mass fraction formed at a given look-back time (in Gyr) for galaxies with ST-SFH (thin lines) and LT-SFH (thick lines), in voids (blue dashed lines), filaments and walls (green dot-dashed lines) and clusters (purple solid lines). The samples used take into account the selection criteria applied by the quality control analysis and are based on different stellar mass distributions. In general, the standard error of the mean (1σ) is smaller than the line width of the curves. The number of galaxies for each large-scale environment and SFH type is given in the legends.

Source data

We then define three new subsamples with the same stellar mass distribution (see MethodsSample selection’ for more details). In Fig. 4a,d we see that, regardless of their SFH type, cluster galaxies, on average, assemble their stellar mass faster than galaxies in voids and in filaments and walls at any given stellar mass, except for very high stellar masses, where galaxies assemble their stellar mass at the same time in all three large-scale environments. Low-mass and high-mass galaxies, on average, assemble 50% and 70% of their stellar mass at the same rate in voids as in filaments and walls. However, intermediate-mass galaxies assemble both 50% and 70% of their stellar mass later in voids than in filaments and walls.

Fig. 4: Median assembly times versus stellar mass.
figure 4

af, Assembly time (Gyr) of 50% (T50) (a) and 70% (T70) (d) of the stellar mass for all the SFH types, galaxies with ST-SFH (b and e) and LT-SFH (c and f), in voids (blue triangles), filaments and walls (green squares) and clusters (purple circles). The samples used take into account the selection criteria applied by the quality control analysis and are based on the same stellar mass distributions inside every stellar mass bin. The error bars represent the standard error of the mean (1σ). The values and errors represented in this figure are shown in Extended Data Table 1, together with the number (and fraction of the SFH types) of galaxies in each large-scale environment and stellar mass bin.

Source data

In Fig. 4b, we find that galaxies with ST-SFHs, on average, have formed 50% of their stars very early (approximately 11 Gyr ago), independently of their large-scale environment and stellar mass. This suggests that, in the early Universe, the density contrasts between the upcoming large-scale environments were not strong enough to create a difference in the assembly rate between the galaxies that were forming at that time. The assembly time differences that we find for galaxies with ST-SFHs are only imprinted later on in their evolution (for example, T70; see Fig. 4e), when the large-scale environment does play a role. Whereas galaxies in clusters with ST-SFH exhibit similar assembly times for any given stellar mass (T70 ≈ 8 Gyr), void and filament and wall galaxies, at some point, slow down their evolution compared with cluster galaxies, more substantially at low stellar masses than at high stellar masses. This might indicate that low-mass galaxies with ST-SFHs were formed at early times as were their massive counterparts but have been later affected by the large-scale environmental density, which slowed down their SFH. However, at very low stellar masses, the number of galaxies (8, 24 and 9 galaxies) is less statistically significant than at higher stellar masses. High-mass galaxies with ST-SFHs have been less affected by their large-scale environment owing to early mergers (even in voids, whose galaxies are not necessarily isolated, as they can be found in groups and in mergers11,15,16) or the effect of more massive dark matter halos. Moreover, the fraction of ST-SFH low-mass galaxies (Extended Data Table 1) is much lower than the fraction of ST-SFH high-mass galaxies, which suggests that galaxies that were assembled quickly at the very beginning of the Universe (ST-SFH) are more likely to be massive galaxies now, to have gathered mass by consecutive mergers, to have more massive dark matter halos, to run out of gas and to quench.

Galaxies with LT-SFHs have assembled their stellar mass later than those with ST-SFHs by 1.09 Gyr to 5.88 Gyr depending on the large-scale environment, assembly time and stellar mass. This delay might have been enough for the LT-SFH to be affected by the large-scale environment since very early on, in contrast with the ST-SFH. We find, in Fig. 4c,f, that void galaxies with LT-SFHs evolve more slowly than galaxies in clusters at any given stellar mass and slightly more slowly than galaxies in filaments and walls at intermediate stellar masses. The evolution of cluster galaxies with LT-SFH is accelerated, at any given stellar mass, by the higher density and higher probability of undergoing interactions in their large-scale environment compared with voids and with filaments and walls. In the same way, galaxies in filaments and walls evolve faster than galaxies in voids, which indicates that evolution at later times is influenced by the large-scale structure, more substantially at intermediate stellar masses than at high and low stellar masses. At high stellar masses, galaxies might have been more affected by local interactions or their massive dark matter halos than by their large-scale environments. Low-mass galaxies might have been captured as satellites of more massive galaxies, as they were more affected by local processes and the central galaxies of their systems than by their large-scale environments. Additionally, the lack of assembly time differences at low stellar masses may be understood within the halo occupation distribution paradigm.

We observe differences in the evolution of galaxies when comparing their SFHs for different large-scale environments, SFH types and stellar masses. Although the mechanics that generate these differences are not clear yet, we can identify several processes that might have triggered these SFH differences between galaxies in different large-scale environments. Differences in the halo-to-stellar mass ratio, the activity of active galactic nuclei (AGNs) and the gas accretion between the three large-scale environments might be some of the reasons why the SFHs in void galaxies are, on average, slower than in filaments and walls and much slower than in clusters (see MethodsAdditional discussion’ for a more detailed discussion).

Methods

Sample selection

Our void galaxy sample is extracted from a nearby void galaxy catalogue defined by the Calar Alto void integral-field treasury survey (CAVITY)17 project. This Calar Alto Observatory18 legacy project is generating the first statistically complete integral-field unit (IFU) dataset of void galaxies. The CAVITY survey presents a well-defined selection of void galaxies, which are fully enclosed in the Sloan Digital Sky Survey (SDSS) footprint within a 0.01 and 0.05 redshift range and cover a wide range of stellar masses (108.5 ≤ M[M] < 1011.0). The CAVITY survey aims to observe approximately 300 galaxies with the PMAS-PPAK IFU at the Calar Alto Observatory, along with ancillary deep optical imaging, CO and HI data (I.P. et al., manuscript in preparation) to characterize the spatially resolved stellar populations and ionized gas content of void galaxies, together with their kinematics and dark mass assembly. The CAVITY mother sample, which is made of 2,529 galaxies distributed in 15 voids, is a subsample of a previously defined catalogue of void galaxies presented in ref. 3, where they apply the VoidFinder19,20 algorithm to the galaxy distribution of the SDSS21 and identify 79,947 galaxies in 1,055 voids with mean density contrast δρ/ρ = −0.94 ± 0.03 and radii larger than 10 h−1 Mpc. The VoidFinder algorithm classifies as potential void galaxies those with their third nearest neighbour distance d3 > 6.3 h−1 Mpc and removes them from the SDSS galaxy sample, leaving only galaxies in denser large-scale environments. Then, it generates a space grid of cubic cells of size 5 h−1 Mpc, identifies the empty ones as potential voids and fits maximal spheres inside these empty regions. Spheres overlapping by more than 10% are unified in the same void and galaxies inside these spheres are classified as void galaxies. The sphere with the same volume as the void defines its effective radius. However, voids are not perfectly spherical and some void galaxies lie beyond the effective radius of their void. There are many algorithms to find voids and other large-scale structures such as filaments, walls and clusters. These algorithms differ in the classification of the galaxies into different large-scale structures, especially when they are very close to the limit of the void, and some galaxies may have been potentially mis-classified as void galaxies. The CAVITY project carries out a selection of galaxies from this catalogue3 that lie in the inner region of the voids (distance from the centre below 80% of the effective radius of the void) to avoid the possible inclusion of galaxies inhabiting denser environments. Galaxies that satisfy the completeness (at least 20 galaxies distributed along the radius of the void) and observational (15 voids distributed along right ascension for continuous visibility along the year) requirements of the project form part of the CAVITY mother galaxy sample.

The control sample comprises galaxies inhabiting large-scale environments in the nearby Universe that are denser than voids: these are filaments, walls and clusters. We divide it into two different samples: one is made of galaxies in clusters while the other is made of galaxies in filaments and walls. The number density of galaxies is very similar in filaments and walls; therefore, we consider both environments together (filaments and walls hereafter) as the regions where galaxies are neither in voids nor in clusters. We begin the selection with 109,945 objects that are classified in SDSS as galaxies, have available spectral data in the SDSS and lie in the same redshift range as the CAVITY mother galaxy sample (0.01–0.05). We remove 38,473 void galaxies by excluding objects that belong to the previously cited catalogue of void galaxies3. We then cross-match the remaining galaxies with a previously defined catalogue of groups of galaxies22 from SDSS (considering objects with 30 or more companions as cluster galaxies23) and separate 6,189 objects, which makes the cluster galaxy control sample. The remaining 65,283 galaxies are considered to be filament and wall galaxies. Furthermore, to save computational time, we select from this sample a random subsample of 15,000 filament and wall galaxies preserving the same g − r colour, stellar mass and redshift distributions (two-sample Kolmogorov–Smirnov (KS)-test P value > 0.95). These three samples are magnitude-limited due to the SDSS completeness limit at r-Petrosian < 17.77 mag (refs. 24,25). This means that the sample is progressively less sensitive to faint objects with increasing redshift. However, given the type of study that we carry out and given the narrow redshift range of the CAVITY sample, we do not expect this to be a severe problem for this work.

In Extended Data Fig. 2, we compare the colour and stellar mass distributions of the three samples. We see that part of the void galaxies are located in the red sequence but they mainly populate the blue cloud. This distribution is more balanced in filaments and walls where galaxies are equally distributed between the red sequence and the blue cloud. However, the majority of cluster galaxies cover the red sequence and only a small part of them are distributed over the blue cloud. As observed before6,7,8,9,10,11,12,13,14, void galaxies are, on average, bluer and less massive than galaxies in filaments, walls and clusters. Then, we proceed to carry out our analysis and quality control cuts (see MethodsQuality control’ for more details) to remove some galaxies with badly fitted spectra (mainly low-mass objects from the blue cloud with low signal-to-noise ratio) that modify the distributions (Extended Data Fig. 3). We lose 1,542 (61%) galaxies from voids, 8,537 (57%) from filaments and walls and 2,832 (46%) from clusters. The mean stellar masses of the removed galaxies are similar in the three environments (109.2±0.1M in voids, 109.3±0.1M in filaments and walls and 109.5±0.1M in clusters). Finally, after this quality control, we are left with 987 galaxies in voids, 6,463 in filaments and walls and 3,357 in clusters for our study. In Extended Data Fig. 3 we compare the colour and stellar mass distribution of the samples after our quality control. These are the samples we use for the global SFH comparison in Figs. 1, 2 and 3.

As seen in Extended Data Figs. 2 and 3, the stellar mass distribution of these samples is not the same even after the quality control. Void galaxies are, on average, less massive than galaxies in denser environments. Therefore, to extend the comparison for a given stellar mass, we define five stellar mass bins (with a 0.5 dex width) between 108.5M and 1011.0M and we generate two control subsamples with the same stellar mass distribution as our void galaxy sample inside every stellar mass bin. We apply the two-sample KS-test with P values above 0.95 to ensure the accuracy with which the stellar mass distributions are matched. We have not been able to extend the bins at lower or higher stellar masses because the number of galaxies beyond these limits was not enough, in at least one of the environments, to define subsamples with similar stellar mass distributions when applying the KS-test. We are left with 978 void galaxies (we lose nine void galaxies that lie outside the stellar mass bins), 4,800 filament and wall galaxies and 2,570 cluster galaxies. These are the samples that we use in Fig. 4 to compare the assembly times for a given stellar mass.

Spectral analysis

In this study, we recover the stellar line-of-sight velocity distribution (LOSVD) (paying special attention to the recession velocity, V, and the velocity dispersion, σ), the emission lines, the stellar populations and the SFHs of galaxies by fitting stellar spectrum templates to the observed spectrum of the galaxies. For our analysis, we use the synthetic spectral energy distributions for single-age, single-metallicity stellar populations (SSPs) of the extended medium-resolution Isaac Newton Telescope library of empirical spectra (E-MILES26,27,28,29) as stellar spectrum templates; the observed galaxy spectra already available in the SDSS-DR7 (ref. 21) as data for analysis; penalized pixel-fitting (pPXF30,31,32) as software to recover the stellar LOSVD and the emission lines of the gas; and the stellar content and kinematics from high resolution galactic spectra via maximum a posteriori (STECKMAP33,34) as an algorithm with which to recover the stellar populations and SFHs.

The E-MILES26,27,28,29 SSP models are generated using the BaSTI35 isochrones and Kroupa36 universal initial mass function (IMF). We expect that a change in the IMF would shift37 our results (assembly times T50 and T70). However, as we assume the same IMF for the three large-scale environments, it will affect our SFHs equally regardless of the environment and thus relative differences between voids, filaments and walls, and clusters should remain. These models cover a wavelength range from 1,680 Å to 50,000 Å with linear wavelength sampling having a pixel separation of 1.00 Å and a variable instrumental dispersion of full-width at half-maximum (FWHM) between 2.51 Å and 23.57 Å, which is constant (2.51 Å) inside the fitting wavelength range (3,750–5,450 Å) of our analysis.

The SDSS-DR7 (ref. 21) contains integrated optical spectra (fibre aperture with 3 arcsec diameter) for 1.6 million objects, including 930,000 galaxies, 120,000 quasars and 460,000 stars observed at the Apache Point Observatory (APO) 2.5 m telescope. The SDSS spectra have a wavelength coverage from 3,800 Å to 9,200 Å, logarithmic wavelength sampling with a pixel separation of 69 km s−1 (\(\Delta {\log }_{10}(\lambda )=1{0}^{-4}\,{\rm{dex}}\)) and a variable spectral power resolution ranging from R ≈ 1,500 at 3,800 Å to R ≈ 2,500 at 9,000 Å. The instrumental dispersion of the SDSS spectra is variable (FWHM ≈ 2.00–3.00 Å) inside the fitting wavelength range (3,750–5,450 Å) of our analysis and it is different for every galaxy. This is taken into account later in the analysis.

The pPXF30,31,32 algorithm implements a non-parametric full-spectral-fitting technique to recover the LOSVD of stars and emission lines. We assume Gaussian–Hermite LOSVD for the stars and a pure Gaussian LOSVD for the emission lines. This algorithm uses stellar and gas spectral templates, chooses a combination of them and convolves them with the LOSVD that better fits the spectrum of the galaxy. We use the E-MILES stellar templates and, for the emission lines, we place several lines in the same template with fixed relative fluxes of emission-line doublets or Balmer series. The E-MILES stellar templates are synthetic or have been observed with instruments that are different from the one used to observe the spectrum of the galaxy. This means that the wavelength sampling and instrumental dispersion of the stellar templates (linear sampling and FWHM = 2.51 Å of instrumental dispersion) are different compared with the spectrum of the galaxy (logarithmic and FWHM ≈ 2.00–3.00 Å). We resample the templates and convolve both the templates and the observed spectra of the galaxies to have the same wavelength sampling (logarithmic) and instrumental dispersion (3.00 Å) in all of them.

The STECKMAP33,34 algorithm recovers the stellar populations of a galaxy as a combination of SSPs that are fitted to the observed spectrum of the galaxies, after removing the emission lines and assuming fixed stellar LOSVD (both previously derived with pPXF). From this combination of SSPs we derive the stellar mass fraction, metallicity and age of the currently living stars of the galaxy. Afterwards, we apply a correction factor (which depends on the age and metallicity of each stellar population and is provided by the MILES group38) to the current stellar mass fractions, so as to take into account the stars that were formed at a given cosmic look-back time but are not alive any more. For this purpose, we follow the prescriptions in refs. 39,40,41, using BaSTI35 isochrones and Kroupa36 IMF. Finally, from these stellar population ages and corrected stellar mass fractions, we derive the SFH of a galaxy, as the cumulative stellar mass fraction formed at a given look-back time, and estimate its errors as the standard deviation of five Monte Carlo solutions of STECKMAP. Additionally, we interpolate over the cumulative SFH to calculate the times when 50% (T50) and 70% (T70) of the stellar mass of the galaxy was formed. We repeat this for the five Monte Carlo solutions and estimate the errors as the standard deviation. Examples of SFHs are shown in Extended Data Fig. 1 for two individual galaxies.

Quality control

After applying this analysis to our samples of galaxies in voids (2,545 objects), filaments and walls (15,000) and clusters (6,189), we carry out a quality control to identify and remove the badly fitted spectra. There are two main aspects that affect the fit quality: the signal-to-noise ratio of the spectra and the intensity of the emission lines. The fit residual, which is the difference between the observed and the fitted spectrum, is a good indicator of the fit quality. A high fit residual means that the observed spectrum is noisy or the fitted spectrum does not match the real one. In Extended Data Fig. 4a, we show the standard deviation of the fit residual normalized by the level of continuum around Hβ (the second emission line of the Balmer series of the hydrogen atom, \({{\sigma }}_{{\rm{res}}}({\rm{H}}{\rm{\beta }})/{\rm{cont.}}\)) versus the signal-to-noise ratio in the continuum. The equivalent width of Hβ (ΔHβeq) is colour coded. Here, we see how the fit quality (stellar and gas emission) is affected by the signal-to-noise ratio. The level of fit residual, relative to the continuum, decreases with signal-to-noise ratio. We considered that a signal-to-noise ratio greater than or equal to 20 provides a good quality fit with a level of residual lower than 2% of the continuum for the great majority of the galaxies. However, there is a group of galaxies with really intense or wide emission lines that are not well fitted although they have high signal-to-noise ratio.

The pPXF algorithm is not efficient at fitting very intense or non-Gaussian emission lines and may generate high fit residuals. These residuals are small compared with the continuum (below 2%) in bright galaxies but may be higher than the level of noise, leaving wavy features in the spectrum that may affect the fit of stellar populations. In Extended Data Fig. 4b, we show residual-to-noise ratio as the standard deviation of the residual at Hβ normalized by standard deviation of noise in the continuum next to Hβ (\({\sigma }_{{\rm{res}}}({\rm{H}}{\rm{\beta }})/{\sigma }_{{\rm{noise}}}({\rm{H}}{\rm{\beta }})\)) versus the signal-to-noise ratio in the continuum; ΔHβeq is colour coded. Here, we see that some bright galaxies (with intense emission lines, in general) have the level of residual much higher than the level of noise. After a visual inspection of a set of these galaxies, we find featured residuals due to asymmetrical, wide, or non-Gaussian emission lines (see good and bad fit examples in Extended Data Fig. 5) and consider that \({{\sigma }}_{{\rm{res}}}({\rm{H}}{\rm{\beta }})/{\sigma }_{{\rm{noise}}}({\rm{H}}{\rm{\beta }})\le 2.0\) provides a good quality fit. However, this is only a small fraction of the total number of galaxies (5% in voids, 8% in filaments and walls and 7% in clusters).

Additionally, as final step in our quality control, we take into account the aperture effect in the SDSS spectra. The optical spectra are available for the central region of our galaxies (fibre aperture with 3 arcsec diameter). This might introduce a bias for samples covering a large redshift range where this aperture would cover only the inner region of the nearby objects but a large fraction of the galaxy for the distant ones. However, the apparent radius distribution (Extended Data Fig. 6) is similar for the three samples and the redshift range (0.01 to 0.05) is the same, with absolute apertures ranging from 0.3 kpc to 1.6 kpc. We remove from our samples any galaxies with \({R}_{90{\rm{r}}} > 20\,{\rm{arcsec}}\), for which the aperture effect would have a larger influence, to minimize a possible size bias in our study. The aperture effect affects our study only in the sense that our results are valid for the centre of the galaxy only.

Additional discussion

In Fig. 2, we show that the SFH of a galaxy can be classified as ST-SFH or LT-SFH. Although it might be tempting to associate the SFH bimodality with the current galaxy colour, morphology or local environment, the SFH types do not correspond to the bimodal colour or morphology distributions (Extended Data Fig. 7) and they do not strongly correlate with the local density. The SFH type determines the evolution of a galaxy, in general, along its entire life. However, the colour and morphology are associated with current properties of the galaxy, which should not be that strongly affected by the overall SFH type (shape) but by the most recent stages of the SFH, the current environmental state or physical conditions (gas content, interactions, accretion, etc.)

Additionally, in Fig. 4c,f, we do not find assembly time differences for low-mass galaxies. This observation can be interpreted based on the halo occupation distribution paradigm, as mentioned in the main text. According to this paradigm, galaxies in voids have higher halo mass (approximately 10%)42 than in denser environments for a given stellar mass. This, together with the lower probability of finding high-mass galaxies in voids, makes low-mass galaxies in voids more likely to be the central objects of a system. However, low-mass galaxies in voids, which would have presumably evolved more slowly than galaxies in filaments and walls due to their large-scale environment, might have compensated for these SFH differences by accelerating their star formation owing to their higher halo masses.

Our main finding is that galaxies assemble their stellar mass in voids more slowly than in filaments and walls and much more slowly than in clusters (Fig. 4). We discuss some of the physical processes that might have triggered these differences. Previous cosmological simulation analyses42,43,44,45 find that the halo-to-stellar mass ratio is higher in void galaxies compared with galaxies in denser large-scale environments, which suggests that galaxies in voids evolve more slowly than in filaments, walls and clusters. Regarding the effect of AGNs, some observational studies find statistical evidence for a larger fraction of AGNs46,47 and massive black holes47 in voids. However, these differences in the fraction of AGNs between galaxies in voids and in denser environments are not present in other observational studies48. No differences in the black hole-to-galaxy mass ratio are reported by other simulation analyses44. There is no agreement on how the large-scale environment affects the nuclear activity of the galaxies and it is controversial to consider AGNs as a possible mechanism that triggered the SFH differences that we find. A simulation analysis49 found that there are mainly two modes of gas accretion in galaxies. In the cold accretion mode, the gas flows along the filaments into the galaxy. This dominates in low-density large-scale environments, low-stellar-mass galaxies and at high redshifts. In the hot accretion mode, the virialized gas around the galaxy falls into it while it cools down. This dominates in cluster large-scale environments, massive galaxies and at low redshifts. This suggests that the gas accretion has been different throughout the SFH between galaxies in voids and denser large-scale environments and this might have introduced current gas content differences between them. Some other observational studies14,15 do not find any atomic gas mass differences between voids and galaxies in denser large-scale environments although others11,45,50 find a tentative lack of atomic gas in void galaxies at stellar masses above 109.5M, which is the same range in which we find the LT-SFH differences. However, a lack of atomic gas in galaxies does not necessarily imply a lack of molecular gas50,51,52,53,54,55 from which the stars are formed.