Introduction

Microorganisms are capable of colonizing a wide range of environments including natural and anthropogenic surfaces1,2,3. One of the most effective survival strategies developed by microbial communities is the formation of a biofilm - a structured surface-attached mode of life that enables protection. cooperation and long-term survival in changing environmental conditions4,5,6.

Biofilms are formed not only in natural habitats, but also in built environments, where they contribute to both ecological processes and material degradation7,8. Their presence on stone, brick, wood and plaster surfaces can affect the chemical composition and structure of buildings and the quality and safety of products in food-related environments9,10,11.

Traditional ripening rooms represent ecologically stable built environments where the architecture, material composition, and microclimate jointly shape microbial colonization. Architectural diversity, such as the presence of vaulted ceilings, thick stone foundations, and brick walls, creates a mosaic of surfaces that differ in roughness, porosity, and nutrient-retaining capacity12,13. Materials like limestone and brick, in particular, are highly susceptible to colonization due to their ability to retain moisture and organic residues, which promotes the establishment of biofilms8. Once formed, these biofilms influence not only the condition of wall and ceiling surfaces but also the microbial balance of the entire ripening space, contributing to the composition of the airborne microbiome and potentially affecting cheese maturation. The combination of heterogeneous substrates and a consistent microclimate of high humidity, low temperature, and limited light makes such cellars robust model systems for exploring microbial succession, ecological filtering, and functional specialization in built environments14,15,16.

Although biofilms in medical and industrial settings have been extensively studied, the surface-associated microbiota in traditional cheese cellars remains under-researched. In particular, little is known about the effects of surface material (stone vs. brick) and spatial location (walls vs. ceilings) on biofilm composition and function. Available literature data reported that composition of biofilms on walls is usually composed of bacteria (Pseudomonas spp., Bacillus spp., Staphylococcus spp., and Actinobacteria spp.), and fungi (Aspergillus spp., Penicillium spp., Cladosporium spp., Stachybotrys spp.)8,17. Additionally, the genera Paenisporosarcina and Amycolatopsis were identified e.g. on the walls at Wawel Royal Castle in Krakow, Poland8.

These findings indicate that the substrate type and architectural context may act as selective filters for microbial colonization, a hypothesis directly tested in the present study.

We hypothesized that both the bacterial microbiome and mycobiome of the biofilm vary depending on the surface orientation (walls vs. ceilings) and the substrate type (stone vs. brick) and that ecological interactions within these biofilms reflect environmental filtration and microhabitat-specific selection.

Here, we characterized bacterial and fungal communities forming mature architectural biofilms in a historic cheese ripening facility and investigated their predicted functional roles and ecological network structures.

Materials and methods

Study area

The research was conducted in a historic cheese ripening room, located on the grounds of the Ślesin Farm (northwestern Poland; 53°09′53″N, 17°42′11″E) (Supplementary Material 4, Fig. S1). The ripening room (area: 228 sq m, max height: 2.5 m, min height [under spans] 1.8 m) is located in an over 100-year-old cellar (built in 1890), which was once part of the farm’s barn complex. The foundations and lower parts of the walls were built of fieldstone, while the upper structure of the walls and vault is made of red brick. The ceiling consists of cradle vaults supported by brick pillars.

The average temperature in the cellar is 10 °C ± 2 °C, and the relative humidity remains stable at ~ 85%, which creates optimal microclimatic conditions for traditional cheese maturation. The cheeses are matured on birch wood shelves and are regularly maintained by cheesemakers. The structural and environmental characteristics of the cellar make it a suitable semi-natural environment for long-term microbial colonization and biofilm development.

Biofilms sampling

Biofilm samples (labeled as PD) were collected in the summer of 2021 from a long-ripened cheese cellar. The sampling locations (Supplementary Material 4, Fig. S2) were selected based on the macroscopic evidence of biological colonization, surface morphology, and lithological type of the walls and ceilings (Supplementary Material 4, Fig. S1), particularly in the vicinity of shelves where cheeses were aged. For each surface type (stone wall, brick wall, ceiling), three independent biofilm patches were scraped at a distance of ~ 50–80 cm from each other and ~ 1.5–2.5 m above the floor (samples from the walls and ceiling, respectively), yielding biological triplicates for each location. The samples were obtained using sterile stainless steel tools and transferred into sterile tubes. They were stored and transported at 4 °C to the laboratory, where DNA extraction was performed immediately. A short description (location and material) of the collected biofilm samples is provided in Table 1.

Physicochemical analysis of biofilm samples

A water suspension was prepared by mixing an 8.75 g sample with 25 ml of deionized water18. The pH, electrolytical conductivity (EC) and redox potential (Eh) were measured using Hach HQ4d, HQ11d multimeters and pHC301, CDC40103, and MTC101 electrodes, respectively (Hach Lange, USA).

The same suspensions were shaken for 1 h at 125 rpm on an orbital shaker SM-30 (Edmund Bühler GmbH, Germany) to obtain a water-extractable form of nitrogen and phosphorus. The contents of N-NO3, N-NO2, N-NH4 and P-PO4 in the extracts were determined colorimetrically using an AA3 AutoAnalyzer (Seal Analytical, Germany).

Carbon forms (Total C, Total Inorganic C, and Total Organic C) were measured in soil samples using Shimadzu TOC-VCSH with the SSM5000A module (Japan).

The total contents of Cu, Fe, Mn, Mg, K, Ca, and Na were measured on a flame atomic absorption spectrometer (Hitachi ZA3300, Japan) after digestion in the mixture of 4 ml HF, 4 ml HCl, and 1 ml HNO3 using an Anton Paar Multiwave 5000 microwave digestion system (Anton Paar GmbH, Austria). Contents of nutrients and elements were expressed in mg per kg while carbon forms in percent. Each of these factors was measured in three replicates.

DNA extraction and sequencing

The triplicate biofilm samples from each surface type (microhabitat) were homogenized and combined to obtain a representative composite sample for each location (PD_B1–PD_B4). DNA extraction from the collected biofilms was carried out using a DNeasy®PowerLyzer® PowerSoil® Kit (QIAGEN). To isolate DNA, 0.30 g of the research material was weighed into a PowerBead Tube and processed according to the manufacturer’s protocol. DNA was extracted in three independent technical replicates for each location. Pooling of the resulting DNA extracts was performed to reduce stochastic variation between replicates and to obtain a representative DNA sample for each environment.

Each pooled DNA sample was subsequently sequenced three times as technical replicates. Metagenomic DNA analysis of bacterial and fungal populations was performed within the V3-V4 hypervariable region of the 16 S rRNA gene and the ITS region. High-throughput next-generation sequencing (NGS) was carried out on the Illumina MiSeq platform using paired-end (PE) technology, 2 × 300 bp reads with the MiSeq Reagent Kit v3 (Illumina, USA). Specific primer pairs 341f (CCTACGGGNGGCWGCAG) and 785r (GACTACHVGGGTATCTAATCC)19, were used for bacterial 16 S rRNA amplification, while ITS1FI2 (GAACCWGCGGARGGATCA) and 5.8 S (CGCTGCGTT CTTCATCG)20 were used for fungal ITS amplification and library preparation. PCR reactions were performed using Q5 Hot Start High-Fidelity 2X Master Mix (New England Biolabs, USA). Sequencing and library preparation were performed by an external service provider (Genomed S.A., Warsaw, Poland).

Bioinformatic and statistical analysis

Bioinformatic processing of sequencing data was conducted using QIIME 2 (version 2024.10)21 employing the DADA2 plugin for high-resolution amplicon sequence variant (ASV) inference22. Taxonomic assignment of bacterial sequences was performed using the SILVA 138 reference database23. For fungal community analysis, taxonomic classification was performed using the UNITE database, version 10, dynamic release (classifier-unite-ver10_dynamic-04.04.2024-Q2-2024.5.qza). This classifier is specific for fungal ITS sequences and does not include all eukaryotes. The dynamic release was chosen, as it incorporates frequent updates and refined curation of fungal taxa24,25. Taxonomy was assigned to ASVs using the q2-feature‐classifier classify‐sklearn naïve Bayes taxonomy classifier26.

Adapter sequences were removed from raw reads using Trim Galore27 which internally employs Cutadapt27 and FastQC28 and sequence trimming parameters were determined based on quality score profiles. Specifically, forward and reverse reads targeting the 16 S rRNA gene were truncated to 260 bp and 180 bp, respectively. The ITSxpress plugin28 was used for trimming ITS regions to remove conserved flanking sequences. Default filtering parameters were applied in DADA2 for both bacterial and fungal datasets.

Alpha and beta diversity metrics were initially calculated in QIIME 2, and further diversity analyses were conducted in R (version 4.4.2)29,30,31,32 using the BiodiversityR package33. Alpha-diversity was evaluated using the Shannon, Simpson and Pielou Evenness indices. Because Shannon values are non-linear and can be difficult to interpret directly, we converted them into effective numbers of species (Hill numbers of order q = 1) calculated as exp(H′), following the recommendations proposed by Jost (2006) and Lefcheck (2012)34,35. This transformation expresses diversity on a linear scale, where values can be interpreted as the equivalent number of equally abundant taxa, facilitating direct comparisons among samples. To minimize the influence of sequencing errors and spurious rare taxa, we additionally filtered features occurring at < 0.1% relative abundance within each sample. Shannon diversity metrics were calculated both before and after filtering to assess the stability of the results. Beta-diversity patterns were evaluated using both phylogenetic and non-phylogenetic distance metrics. For the 16 S rRNA gene dataset, beta diversity was assessed using three complementary approaches: Aitchison (CLR-Euclidean) distances, to account for the compositional nature of the data; weighted UniFrac, incorporating phylogenetic relationships and abundance; and unweighted UniFrac, reflecting presence/absence-based phylogenetic similarity. Aitchison distances were calculated from CLR-transformed data after count-zero multiplicative (CZM) replacement (zCompositions package), using Euclidean distances and PCoA ordination (ape). Weighted and unweighted UniFrac distances were computed on the rarefied ASV Tables (30,000 reads per sample) using a rooted phylogenetic tree generated in QIIME2. The resulting distance matrices were ordinated by PCoA, and plots were generated in R (ggplot2), with axis labels indicating the proportion of variance explained. For the ITS dataset, UniFrac metrics were not applicable due to the absence of a universally accepted fungal phylogeny. Therefore, Aitchison distances (CLR–Euclidean) were used exclusively to describe compositional dissimilarities, following the same pipeline as for 16 S. Group differences were evaluated using PERMANOVA (adonis2, vegan, 9,999 permutations), and the homogeneity of multivariate dispersion (PERMDISP) was assessed with the same number of permutations34,36,37. Stress values were examined to assess the goodness of fit, and consistent clustering patterns with PCoA confirmed the robustness of the beta-diversity structure. To control for multiple testing, p-values from all PERMANOVA tests were adjusted using the Benjamini–Hochberg (FDR) correction38.

Functional predictions for bacterial communities were carried out using the FAPROTAX database (version 1.2.10)39, within a Python 3 environment. Fungal functional guilds were assigned using the FunGuild database (version 1.1)40, also executed in Python 3.

To evaluate differences in taxonomic abundances between categorical groups (e.g., wall vs. ceiling; brick vs. stone), microbiological data were CLR-transformed to account for their compositional nature41. Group comparisons were performed using Wilcoxon rank-sum test and statistical significance was set at p < 0.05. Multiple testing correction was applied using the Benjamini–Hochberg false discovery rate (FDR) procedure, and taxa with adjusted p-values (p_adj) < 0.05 were considered statistically significant.

To explore the relationships between the community composition and environmental variables, we performed redundancy analysis (RDA). For this analysis, the ASV count table was first transposed (samples × taxa) and subjected to a Hellinger transformation42 using the decostand function in the vegan package. The Hellinger transformation converts raw counts into square-rooted relative abundances, reducing the impact of differences in sequencing depth and making Euclidean-based ordination methods such as RDA more appropriate. The significance of the model, individual environmental predictors and canonical axes were evaluated using permutation-based ANOVA (anova.cca) with 999 permutations.

All statistical analyses and graphical visualizations were conducted in R (version 4.4.2)31, using the following R packages: ggplot243, ggpubr44, pheatmap45, vegan46, MASS47, phyloseq48, igraph49, and Hmisc50, compositions51, rstatix52.

Results

Physicochemical characteristics of biofilm samples

The basic physicochemical parameters describing the biofilm samples are summarized in Table 1.

Table 1 Main features of the studied biofilm samples. The average values are followed by standard deviations (SD) and for each parameter, averages marked by the same letter are not significantly different between the samples (p > 0.01).

The physicochemical characteristics of collected samples were closely connected with the substrate material – brick and stone and were significantly different for each sample (p < 0.01; Table 1). They had alkaline reaction (> 8 with the exception of sample PD_B3–7.81), a substantial fraction of IC in relation to TC (81–90%), and high contents of alkaline and alkaline earth metals, among which potassium and calcium were the most abundant (up to 24.8 g kg− 1 and 22 g kg− 1, respectively). What is more, iron (Fe) was the third abundant element reaching up to 13 g kg− 1. The values of Eh indicated quite reducing conditions that correspond with Fe contents. There were also high N-NO3 contents in the samples ranging from 371.63 ± 2.01 (PD_B4) to 64.236 ± 192 mg kg− 1. It is worth noting that sample PD_B3 contained high amounts of salts (EC = 122.6 µS cm− 1), which was reflected by the highest levels of N-NH4, Mg, and K forming a distinctive niche for microorganisms.

Microbial community structure

In this study, four DNA biofilm samples, each analyzed in triplicate, were sequenced. The final datasets contained between 97,788 and 124,764 sequences per sample. Additional information about the sequences is provided in Supplementary Material 4: Table S1, Fig. SS3 and Fig. S4.

Microbial diversity

The microbial diversity in the analyzed biofilm samples was assessed using biodiversity estimates for individual samples (alpha diversity) (Fig. 1a and b) and microbial community similarity between the samples (beta diversity) (Fig. 1c and d). The Shannon and Simpson indices were used to quantify microbial diversity. Additionally, the Pielou Evenness index was employed to assess the evenness of species distribution, providing insight into the relative abundance of different taxa within the microbial community.

Based on the indicators shown in Fig. 1a and b, it can generally be observed that the microbial biodiversity of both bacteria and fungi in biofilms developing on the walls of the cheese ripening room was higher compared to those on the ceiling. All the calculated bacterial and fungal biodiversity indices were approximately 38–43% lower for the ceiling in terms of Shannon entropy (p < 0.01), 12% for the Simpson index, and 21–27% lower for Pielou evenness (p > 0.01).

Fig. 1
figure 1

Alpha (a and b) and beta (c and d) diversity. The boxplots corresponds to the bacterial (a) and fungal (b) biodiversity indices: Simpson, Shannon, and Pielou index and represents the diversity between the samples. The Principal Coordinates Analysis (PCoA) illustrates the variability of bacteria (c) and fungi (d) between the biofilms.

The principal Coordinates Analysis (PCoA) analysis revealed that the microbial composition of the biofilms differed notably depending on the sampling location (wall vs. ceiling), in agreement with the taxonomic distinctions described below. In the PCoA plot for bacterial communities, the samples collected from the walls (PD_B1 and PD_B2) clustered closely together, indicating a high degree of compositional similarity between these biofilms. In contrast, the ceiling-derived samples (PD_B3 and PD_B4) were clearly separated from the wall samples and from each other, suggesting a distinct and more heterogeneous bacterial structure, with PD_B3 exhibiting the most divergent profile (Fig. 1c).

The weighted UniFrac PCoA revealed clear separation between wall and ceiling associated biofilms (Fig. 1). PERMANOVA applied to the weighted UniFrac matrix confirmed a significant effect of group (R² = 0.999, F = 2101.2, p = 0.0001), with no significant heterogeneity of dispersion (PERMDISP F(3,7) = 3.48, p = 0.074). For 16 S, using Aitchison (CLR–Euclidean) distances, PERMANOVA showed a strong effect of publicationName group (R² = 0.937, F = 34.50, p = 0.0001). However, dispersion heterogeneity was detected (PERMDISP F(3,7) = 4.64, p = 0.0275), indicating that part of the PERMANOVA signal may be influenced by differences in within-group variability. For the ITS dataset, analyzed in Aitchison space (CLR–Euclidean), PERMANOVA also indicated significant community differentiation (F = 34.47, R² = 0.937, p = 0.0002), while PERMDISP showed no difference in dispersion (F(3,7) = 0.874, p = 0.507). After Benjamini–Hochberg correction, both comparisons remained significant (weighted UniFrac p_FDR = 0.0003; Aitchison p_FDR = 0.0002). Together, these results confirm strong and consistent compositional and phylogenetic differentiation between wall and ceiling biofilms.

Taxonomic classification of the microbial community

The relative abundance of bacterial and fungal phyla colonizing the biofilms is shown in Fig. 2. The community structure differed in the sampling location, with the wall biofilms (PD_B1, PD_B2) showing greater diversity than the ceiling biofilms (PD_B3, PD_B4), particularly on stone surfaces. Actinobacteriota dominated the ceiling samples (up to 93%), whereas wall biofilms contained higher proportions of Pseudomonadota (previously Proteobacteria) (~ 39%) and Bacteroidota (22–35%). Additional phyla detected at lower abundances included Candidate Phyla Radiation (Patescibacteria), Planctomycetota, Chloroflexota (previously Chloroflexi), Bacillota (previously Firmicutes), Gemmatimonadota and Halobacterota (up to 2% on the stone walls; Fig. 2a).

Among fungi, Ascomycota predominated across all the samples (58–96%), with wall biofilms exhibiting higher diversity and additional contributions from Mortierellomycota and Rozellomycota. The ceiling biofilms contained higher proportions of Fungi Incertae sedis (13–19%), whereas the wall biofilms showed unique Rozellomycota enrichment (2.4%; Fig. 2b).

Fig. 2
figure 2

Relative abundance (%) of top 10 bacterial (a) and fungal (b) phyla. representing the microbial community identified in the biofilm samples.

Fig. 3
figure 3

Relative abundance of top 10 bacterial (a) and fungal (b) genera (%), representing the microbial community identified in the biofilm samples. Differences in the relative abundance of dominant taxa at the genus level as a function of the sampling location (walls vs. ceiling) (c and d) and the wall construction material (brick vs. stone) (e and f).

At the genus level (Fig. 3), distinct colonization patterns were observed depending on the sampling location. The ceiling surfaces (PD_B3 and PD_B4) were enriched in Amycolatopsis (39% and 20%), Pseudonocardia (20% and 3%), and unidentified members of the Micrococcales order (8% and 15%), whereas their presence in the wall biofilms (PD_B1 and PD_B2) was markedly lower, i.e. 7% and 1.4% for Amycolatopsis, 4% and 2.5% for Pseudonocardia, and only 0.08% for Micrococcales, corresponding to a 78–99% reduction (p < 0.05). Additionally, unidentified Actinobacteria were substantially more abundant on the ceiling (17.1% and 1.53%) than on the walls (0.90% and 0.45%), indicating a strong enrichment of Actinobacterial lineages in the ceiling biofilms (p < 0.05). Other taxa, such as Rubrobacter, exhibited similar but statistically non-significant differences between the ceilings and the walls. Wall biofilms, in contrast, were dominated by Flavobacteriaceae (10% and 12%), Balneolaceae (10% and 16%), (p < 0.05) and Halomonas (6–7%), and Salinisphaera (13–16%), (p > 0.05) which occurred at much lower levels on the ceiling surfaces (0.5–2.5%), corresponding to reductions of 91–99% (Fig. 3c). The wall material (brick vs. stone) had less influence on the composition of the bacterial community. Actinomycete-related taxa, including Amycolatopsis, Pseudonocardia, and unidentified members of the Pseudonocardiaceae family and Actinobacteria class, were on average 60% more abundant on brick than on stone, but with p < 0.05. In contrast, Flavobacteriaceae family (p < 0.05) and halotolerant taxa such as Halomonas (p > 0.05) and, in particular, Salinisphaera (p > 0.05) preferred stone surfaces (Fig. 3e). Detailed data on the abundance of all taxa are presented in Supplementary Material 1.

Fungal communities exhibited opposite trends to bacteria. Wall biofilms (PD_B1 and PD_B2) were enriched in Cordycipitaceae genus Incertae sedis (20–50%), Cladosporium (0.7–4.5%), Aspergillaceae genus Incertae sedis (p < 0.05), Debaryomyces (p < 0.05), and Acremonium (7–16%), as well as unidentified species of Hypocreales (1–4%) (p > 0.05; Fig. 3d). At the same time, ceiling samples (PD_B3 and PD_B4) were dominated by Hypocreales genus Incertae sedis (30–61%) and unidentified Fungi species (13–19%) (p < 0.05). As in the case of the bacteria, the wall material affected the fungal communities: most taxa preferred brick, while Debaryomyces and unidentified Fungi were more abundant on stone (p < 0.05; Fig. 3f). Detailed data on the abundance of all taxa are presented in Supplementary Material 2.

The RDA analysis (Fig. 4a and b) evidenced that the different taxa constituting the biofilms in the cheese ripening rooms have clear preferences for environmental variables. EC and pH were the most important variables shaping the composition of the microbiome, especially of bacteria of the order Pseudonocardiales (Amycolatopsis and Pseudonocardia) and fungi of the class Dothideomycetes. Permutation-based ANOVA (999 permutations) for the bacterial community confirmed that the overall RDA model was highly significant (F = 157.9, p = 0.001). The tests of individual terms showed that Eh, pH and EC were all significant community composition predictors (p = 0.001 each). The axis-wise tests further indicated that the first three canonical axes were significant (p = 0.001), with RDA1 explaining the largest share of variance. Permutation-based ANOVA (999 permutations) of fungal ITS data confirmed that the RDA model was significant (F = 43.2, p = 0.001). All three variables Eh, pH and EC were significant predictors (p = 0.001), with Eh explaining the largest share of variance, followed by EC and pH. The axis tests indicated that the first three canonical axes were all significant (p = 0.001).

Fig. 4
figure 4

Redundancy analysis (RDA) biplot depicting the relationship between the bacterial (a) and fungal (b) communities and the main physicochemical parameters of the biofilm samples.

Predicting microbial function in biofilms

Functional profiling of the bacterial communities using FAPROTAX revealed distinct metabolic potentials between the wall (PD_B1, PD_B2) and ceiling (PD_B3, PD_B4) biofilms (Fig. 5). Only ecologically relevant categories consistent with the cheese-ripening cellar environment (e.g., chemoheterotrophy, fermentation, polymer degradation, denitrification, and ureolysis) were considered in the interpretation. Functions unlikely to occur under the studied conditions (e.g. photoautotrophy) were excluded as database artefacts.

Fig. 5
figure 5

Heat map showing the predicted functional activity of microorganisms assigned to different functional groups in the analysis of 16 S rRNA amplicon sequences. The color intensity represents the level of a given function in each sample: dark red - higher predicted functional activity, blue - lower activity, white - neutral activity (close to zero).

The biofilms formed on the wall surfaces were characterized by a strong enrichment of heterotrophic metabolic pathways. In particular, such functions as chemoheterotrophy, aerobic chemoheterotrophy, fermentation, nitrate reduction, xylanolysis, and chitinolysis showed consistently higher relative abundances in the PD_B1 and PD_B2 samples. These processes likely support organic matter turnover, nutrient cycling, and maintenance of stable biofilm structures under nutrient-rich yet microaerophilic conditions.

In contrast, the ceiling biofilms (PD_B3 and PD_B4) displayed elevated levels of methanogenesis, particularly hydrogenotrophic methanogenesis (CO₂ reduction with H₂) and nitrite respiration, suggesting the presence of localized anaerobic microniches within ceiling-associated biofilms. Interestingly, the levels of some functional categories, such as nitrification aerobic ammonia or nitrite oxidation were consistently low across all the samples, suggesting limited nitrifying activity in this environment (Fig. 5).

These results highlight strong functional differentiation between the ceiling and wall biofilms in the cheese ripening room, likely driven by environmental gradients such as light availability, nutrient deposition, and potentially microaerobic or anaerobic conditions.

Fig. 6
figure 6

Heat map showing the predicted functional activity of microorganisms assigned to different functional groups in the analysis of ITS region sequences. The color intensity represents the level of a given function in each sample: dark red - higher predicted functional activity, blue - lower activity, white - neutral activity (close to zero).

The functional assignment of fungal taxa based on the FunGuild analysis revealed distinct ecological strategies between the biofilms developing on the walls (PD_B1 and PD_B2) and the ceiling (PD_B3 and PD_B4) surfaces of the cheese ripening room (Fig. 6). The fungal communities associated with the wall biofilms exhibited a significantly higher functional diversity and were dominated by taxa classified into saprotrophic and multifunctional trophic modes. In particular, samples from the brick and stone walls (PD_B1 and PD_B2) exhibited an elevated relative abundance of several functional guilds. Saprotrophs, which are responsible for the degradation of organic matter, were especially prominent in PD_B1. Multifunctional fungi, characterized by combined ecological roles, such as saprotrophic and symbiotic functions, were abundant in both PD_B1 and PD_B2. Additionally, endophytes and endophyte–saprotrophs, typically associated with plant material but also capable of degrading complex organic substrates, were well represented. Other groups, including wood saprotrophs, fungal parasites, and animal parasites, were detected almost exclusively in the wall-associated biofilms (Fig. 6).

Ecological networks

Figure 7 presents the ecological networks established for the 20 most important microbial taxa: bacteria (16 S) in the upper part and fungi (ITS) in the lower part. The analysis was based on the co-occurrence of taxa in different samples, which may suggest ecological relationships, e.g. mutualism, competition, or interdependence.

The ecological network indicates the dominance of Actinobacteriota, which form a highly connected cluster, suggesting a stable and integrated ecological community. Figure 7 shows a large, strongly connected cluster of red nodes (Actinobacteriota) which may indicate an intense interdependence of this bacteria phylum. The presence of Pseudomonadota and Bacteroidota in the mixed cluster indicates the possibility of complementary interactions especially in the degradation of organic substances present in the biofilm and the exchange of metabolites. The mixed green-blue-red groups (Actinobacteriota, Pseudomonadota, Bacteroidota) may suggest more complex interactions between phyla, e.g. cooperation in the degradation of organic matter or exchange of metabolites. It should be noted that there are a few individual unrelated nodes (outliers), which may suggest that these taxa are unique to a single sample or poorly associated with the rest of the microbiota (Fig. 7). The red cluster coincides with the dominance of the genera Pseudonocardia (ASV15) and Amycolatopsis (ASV1) - filamentous bacteria with adhesive and antagonistic properties. The connections in the Bacteroidota and Pseudomonadota network suggest the interaction of these groups with Actinobacteriota in multispecies biofilm formation. When considering the richness of bacteria in biofilms, this also confirms the co-occurrence of microorganisms such as taxonomic units belonging to Halomonas (ASV13), Flavobacteriaceae (ASV4; Fig. 7, Supplementary Material 3).

Ascomycota (red nodes) forming a distinct cluster are a common group of fungi associated with decomposition of matter and biofilms in damp environments such as cellars (Fig. 7). The significant role of an unexplained taxon classified as Fungi phylum Incertae sedis may indicate the presence of poorly explored environmental fungi, potentially specific to the conditions of the cheese cellar (high humidity, limited ventilation, presence of volatile organic compounds from fermenting dairy products). Basidiomycota (blue) seemed to be less numerous, but also associated with the main cluster, which may suggest a less central but still important role. The strongly associated cluster around the green node may indicate the role of a phylogenetically unexplained fungal taxon as a potential key organism in this biofilm microbiota.

Fig. 7
figure 7

Network interactions of the 20 most common ASVs of the biofilm microbiota, where nodes are marked with colors corresponding to the cluster level. Only strong and statistically significant correlations (|r| > 0.6, p < 0.05) were included in the network.

Discussion

Each ecosystem is characterized by the presence of autochthonous microorganisms that colonize surfaces and form structured biofilms adapted to local environmental conditions5. In built environments, such as historic cheese cellars, biofilms reflect a combination of environmental filtering, surface material properties, and long-term microbial succession. From the surface biofilm, microorganisms can penetrate into the stone, becoming endolithic, whereas bioreceptivity (the ability of a material to be colonized by living organisms) defines the properties of a building that attract and support biological colonization7. The cheese ripening rooms studied here, a more than 100-year-old structure with thick brick and stone walls and cradle vault ceilings, offer a stable microclimate, characterized by low temperature (~ 10 °C), high humidity (~ 85%), and minimal light. These conditions closely resemble those found in natural subterrestrial ecosystems (e.g., caves or crypts), and thus position the cellar as a semi-natural niche for microbial colonization and differentiation. The long-term environmental stability makes this type of setting a model habitat for investigating microbial biofilms in food-related built environments and comparing them with microbial consortia in caves or on exposed stone surfaces.

Building stone is known to provide a habitat for a range of microorganisms (bacteria, archaea, cyanobacteria, algae, fungi and lichens), some of which contribute to biodeterioration, while others stabilize the microbial community12,53. Effective conservation strategies depend on knowing which microorganisms are present, what energy sources they use, and how they influence colonization and succession7,12. For instance, sulfur-oxidizing bacteria such as Acidithiobacillus and Thiobacillus, and nitrifiers like Nitrosomonas represent chemoautotrophs, while heterotrophic taxa including Pseudomonas, Bacillus, and actinomycetes such as Streptomyces contribute to organic matter degradation. Chemoorganotrophic groups are represented by sulfate-reducing bacteria (Desulfovibrio) and denitrifiers (Paracoccus), whereas halophilic microorganisms like Halomonas and archaea (Halobacterium) thrive in salt-enriched niches54,55,56,57,58. Biofilms in such settings enhance survival through retention of water and nutrients59, which is particularly relevant in food storage spaces like cheese ripening rooms. Importantly, previous studies on cave or outdoor stone microbiomes reported abundant extremotolerant taxa, such as Acidobacteria or Cyanobacteria, which were rare or absent in our system60. This contrast suggests that while mineral substrate provides a common ecological scaffold, the presence of organic residues and volatiles derived from cheese production creates selective pressures unique to food-associated built environments61,62. Thus, the cheese cellar represents a hybrid between lithic and food-processing ecosystems, where stone-associated resilience traits co-exist with fermentative and heterotrophic functions linked to dairy maturation.

We observed a clear divergence in the microbial community composition and diversity between the wall and ceiling biofilms, with higher biodiversity and metabolic complexity in wall-associated communities (PD_B1 and PD_B2). This was especially evident in samples taken from the stone surfaces due to the increased microstructural heterogeneity, which, as in natural substrates, favored the development of a more taxonomically and functionally diverse microbiota. Notably, the highest biodiversity occurred in the stone wall biofilm (PD_B2) in comparison to the brick material, which offer increased microstructural heterogeneity and mineral content. Similarly, Cutler and co-workers reported that stone material yields greater concentrations of DNA and gives a more representative picture of endolithic microbial communities53. Our observations suggest that these surfaces supported taxonomically and functionally diverse microbiota, with notable preferences: Flavobacteriaceae, Balneolaceae, Halomonas and Salinisphaera on the walls, and Amycolaptosis, Pseudonocardia, and Micrococcales on ceilings and brick. Cave and monument biofilms are often dominated by Streptomyces, Crossiella, and Pseudonocardia, with Amycolatopsis and Pseudonocardia present but usually at lower relative abundance compared to Streptomyces63,64. Compared to cave and monument studies, our biofilms (especially samples PD_B3 and PD_B4) contained a higher proportion of filamentous Actinobacteriota (Amycolatopsis, Pseudonocardia), with antimicrobial potential. Their ability to produce antibiotics, siderophores, and polyketides may reflect selective pressures to control opportunistic competitors in food-associated environments, a trait less critical in outdoor lithic systems dominated by phototrophs and lichens. The co-occurrence of halotolerant taxa (Halomonas, Salinisphaera) further reflects adaptation to the humid, salt-enriched microclimate of the cellar, while polymer-degrading bacteria (Flavobacteriaceae, Balneolaceae) probably exploit organic residues of dairy origin65,66,67,68,69.

Actinobacteriota, Pseudomonadota, and Bacteroidota, are all involved in adhesion, biofilm matrix formation, and organic matter degradation70. In our study, Actinobacteriota reached up to 93% relative abundance, followed by Pseudomonadota (39%) and Bacteroidota (~ 35%). These taxa play distinct roles in biofilm formation and resilience70. Actinobacteriota such as Amycolatopsis and Pseudonocardia act as potentially keystone taxa: they secrete exopolysaccharides that reinforce matrix cohesion and produce antimicrobials that regulate the community composition71,72. Pseudomonadota, represented for example by Halomonas and Salinisphaera, contribute metabolic flexibility through tolerance to salinity, including nitrate reduction and utilization of simple organic acids, ensuring biofilm activity under fluctuating oxygen levels73,74. Bacteroidota, including Flavobacteriaceae and Balneolaceae, specialize in polymer degradation (e.g., chitinolysis, xylanolysis), releasing nutrients for the community and supporting trophic interactions within the biofilm. Rubrobacter representatives provide stress resistance to desiccation and oxidative damage, while Bacillota and lactic acid bacteria contribute to fermentation, pH modulation, and flavor compound production. Together, these groups illustrate functional complementarity, ensuring structural persistence, resource cycling, and resilience of the biofilm66,71,75,76.

The fungal biofilm components followed similar spatial trends, meaning that the wall and ceiling surfaces, although differing in substrate and orientation, supported overlapping phylum-level groups with distinct quantitative profiles. The dominant fungal phylum across all biofilms was Ascomycota, accounting for 58–96% in the wall biofilms, and 76–84% in the ceiling biofilms. This group is also the basis of other biofilms colonizing buildings, where it is identified as a biodeteriogen77, and other environments78,79. This phylum, widespread in architectural and natural environments, contributes to EPS production, enzymatic activity, and interactions with bacterial communities80,81,82. Minor fungal phyla (Table S3.) probably assist in substrate degradation but remain functionally uncharacterized. The wall biofilms were enriched in such genera as Acremonium and Cladosporium, known for saprotrophic activity and degradation of structural polysaccharides83, while the ceiling biofilms contained more Hypocreales genus Incertae sedis and unidentified fungi (Fungi genus Incertae sedis), consistent with airborne deposition84. These “similar spatial trends” indicate that both bacterial and fungal communities respond to wall vs. ceiling microhabitats in parallel: walls are colonized by metabolically active, surface-adapted taxa, whereas ceilings accumulate more passive, spore-driven communities85.

The functional predictions of the biofilm-forming bacterial and fungal communities indicate that the wall-associated biofilm is metabolically more active than the ceiling biofilm (Figs. 5 and 6). Wall taxa such as Halomonas and Salinisphaera were linked to chemoheterotrophy, denitrification and alternative respiration, reflecting their ability to use nitrate or organic acids as electron acceptors under oxygen-limited conditions73,74,86,87. Fermentative genera including Bacteroides, Lactobacillus and Streptococcus contributed to acid production, while Lysobacter species were associated with chitin degradation and hydrolysis of structural polysaccharides. These complementary functions not only sustain microbial balance within the biofilm but may also influence cheese maturation through acidification, proteolysis, and the breakdown of extracellular biopolymers88,89. The overall dominance of heterotrophic and fermentative pathways in the wall-associated biofilms suggests an adaptation to nutrient-rich, microaerophilic microenvironments, enriched in volatile and organic residues from cheese ripening. Similar metabolic signatures have been described in other food-related built environments, where organic residues support mixed bacterial–fungal biofilms with active carbon turnover and redox cycling88,90.

In contrast, the ceiling biofilms (PD_B3 and PD_B4) were functionally distinct displayed more passive and low-energy-yield metabolic profiles. Predicted enrichment in hydrogenotrophic methanogenesis (CO₂ reduction with H₂), and nitrite respiration indicates the potential formation of localized anaerobic microzones within ceiling biofilms, possibly resulting from restricted gas exchange and higher moisture retention. Although direct methane production was not measured, such predictions are not necessarily artefactual, as micro-anoxic or microaerophilic conditions are common within mature and compact biofilms, even in nominally aerobic environments. These zones can support facultatively anaerobic or methanogenic taxa capable of maintaining energy metabolism through hydrogen- or carbon dioxide–dependent pathways91,92. The presence of these predicted functions therefore likely reflects spatial heterogeneity in oxygen diffusion rather than erroneous functional assignment.

Interestingly, the consistently low abundance of aerobic ammonia oxidation, nitrite oxidation, and nitrification functions acrossall samples predicts minimal nitrifying activity in this environment. Instead, nitrogen cycling appears dominated by denitrifying and nitrate-reducing taxa such as Halomonas and Paracoccus, which couple nitrate reduction to organic matter oxidation54,55,56,57,58. These processes likely support organic matter turnover, nutrient cycling, and maintenance of stable biofilm structures under nutrient-rich yet microaerophilic conditions.

Fungal members of the biofilm, dominated by Ascomycota, likely complement these bacterial processes by contributing extracellular enzyme activity (e.g., cellulases, proteases) and exopolysaccharide production, thereby enhancing biofilm cohesion and substrate degradation81,82. The co-occurrence of bacterial and fungal degraders is a typical feature of mixed biofilms in confined, humid environments such as caves, wine cellars, and cheese-aging chambers93,94,95.

Finally, the ecological network analysis (Fig. 7) provided complementary insight into the structure and potential ecological organization of bacterial and fungal communities in ripening cellar biofilms. The wall-associated biofilms exhibited more complex and highly connected networks, analyzed separately for bacteria and fungi, compared to ceiling-associated ones. These densely clustered, domain-specific structures indicate ecological complementarity and niche partitioning, i.e. processes frequently associated with the stabilization of long-lived microbial consortia96,97. Key taxa such as Pseudonocardia, Amycolatopsis, Halomonas, and unclassified Ascomycota were identified as probable hub organisms. Such hub taxa are often regarded as potentially keystone taxa that promote spatial organization, mediate resource flows, and buffer the community against disturbance98,99. Their roles in secondary metabolite production and substrate degradation likely underpin the functional cohesion observed in wall-associated biofilms.

In contrast, the ceiling biofilms revealed sparser and less modular networks, aligning with their lower biodiversity and metabolic activity. This suggests that ceiling-associated taxa represent more stochastic colonization events shaped by airborne deposition rather than stable cooperative assemblages100. Overall, this network-level differentiation reinforces the role of architectural substrates and physicochemical gradients in shaping not only the taxonomic composition, but also the ecological structuring and stability of microbial communities in built environments15,101.

The strong inter-fungal relationships and the presence of stable clusters highlighted in the network suggest that the fungal microbiota also plays an important role in biofilm formation and potentially influences the surface microbiota of cheeses during the ripening process. It should be noted that the certain moulds (e.g. Penicillium sp., Geotrichum sp.) are known to be important forcheese maturation and the presence of certain fungi may then be beneficial102. However, the presence of unidentified or opportunistic fungi highlights the need for further evaluation of their potential impact on product safety and quality.

Summarizing, the co-occurrence of these taxa in networks suggests the existence of stable, functionally integrated consortia that can modulate the microclimate and cheese ripening conditions. Although interkingdom interactions were not directly analyzed, the parallel bacterial and fungal network structures suggest potential cross-domain coordination, a phenomenon reported in other built and fermentative ecosystems where fungi provide structural scaffolds and bacteria contribute metabolic versatility103.

From a technological perspective, the dominance of heterotrophic and fermentative functions in wall-associated biofilms may play a beneficial role in the cheese ripening process. These functions are associated with the degradation of complex organic compounds (e.g., casein, polysaccharides), production of organic acids. and modulation of pH, i.e. factors that contribute to flavor development, texture changes, and inhibition of spoilage organisms. The presence of xylanolytic and chitinolytic activity may further support the breakdown of structural polysaccharides, potentially originating from the production environment or microbial biomass. Conversely, the occurrence of photoautotrophic and methanogenic functions in ceiling biofilms suggests a more passive or environmental microbiome, less directly involved in cheese maturation. However, such communities may influence the air microbiota and serve as a source of microbial dispersion, possibly affecting the early colonization of cheese surfaces or contributing to the overall microbial terroir of the ripening room15,104,105.

Conclusions

This study provides an initial insight into the microbial ecology of traditional cheese ripening rooms, which function as semi-natural built ecosystems capable of sustaining spatially structured and functionally diverse microbial biofilms. Clear differences were observed between wall- and ceiling-associated biofilms: the wall surfaces, especially stone walls, supported more taxonomically diverse and metabolically active communities, whereas the ceiling biofilms were less diverse, dominated by filamentous Actinobacteriota and airborne fungi.

At the phylum and genus level, Actinobacteriota, Pseudomonadota, and Bacteroidota dominated the bacterial communities, with Pseudonocardia and Amycolatopsis likely acted as structural and defensive potentially keystone taxa, Halomonas and Salinisphaera contributing to nitrogen cycling and stress tolerance, and Flavobacteriaceae and Balneolaceae driving polymer degradation. The fungal communities were dominated by Ascomycota, with abundant Acremonium and Cladosporium on the walls, and Hypocreales and unidentified fungi more abundant on the ceilings.

The ecological network analysis revealed more complex, strongly connected bacterial and fungal networks on the walls than the ceilings, with key hub taxa contributing to biofilm cohesion and resilience. Although interkingdom interactions were not directly analyzed, the parallel bacterial and fungal networks suggest potential cross-domain coordination under the stable environmental filtering of the cellar.

Overall, our results indicate that the microbial assemblages in cheese ripening rooms share some traits with cave and monument microbiomes and display distinctive features linked to dairy-associated selective pressures, such as enrichment in fermentative and polymer-degrading taxa. While these findings are based on a limited sample set and predictive functional tools, they underscore the value of cheese-ripening rooms as model systems for studying microbial succession, ecological filtering, and community specialization in built environments. Future comparative studies, including multi-site sampling, metagenomic or metatranscriptomic validation, and broader temporal monitoring, are needed to confirm and extend these observations.