Phytochemical and bioactive insights into endophytic fungi from Wrightia tinctoria with emphasis on Xylaria rohrensis metabolites potential Authors: Garima Yadav, Priyankaraj Sonigra, Adhishree Nagda, Tushar Mehta, Abhishek Sahoo, Mukesh Meena, Prashant Swapnil Published: 2025 ABSTRACT Endophytic fungi represent a prolific reservoir of bioactive compounds with potential therapeutic and biotechnological applications. In this study, nine endophytic fungi were isolated from healthy plant parts of the medicinal plant Wrightia tinctoria and evaluated for their phytochemical profiles, antioxidant properties, and antibacterial activities. Among them, Xylaria rohrensis consistently exhibited the strongest bioactivity, with high levels of phenolic and flavonoid contents, correlating with strong antioxidant activity and growth inhibition of both Gram-positive and Gram-negative bacteria. Based on these results, X. rohrensis was selected for further chemical characterization. Fourier-transform infrared (FTIR) spectroscopy revealed prominent absorption bands corresponding to hydroxyl, carbonyl, and aromatic functional groups, confirming the presence of phenolic and flavonoid compounds. Gas chromatography–mass spectrometry (GC–MS) analysis identified a diverse array of secondary metabolites, including phenolic derivatives, sterols, and fatty acids, several of which are known for their antioxidant and antimicrobial properties. To our knowledge, this is the first detailed report describing the metabolite composition and biological potential of X. rohrensis as an endophyte. Multivariate analyses, including principal component analysis (PCA) and correlation studies, demonstrated clear associations between metabolite abundance and biological activity. These findings highlight X. rohrensis as a promising source of novel natural products and expand our understanding of the functional roles of endophytic fungi in medicinal plants.Supplementary InformationThe online version contains supplementary material available at 10.1038/s41598-025-29883-6. Introduction Endophytic fungi have emerged as prolific sources of bioactive secondary metabolites with considerable pharmacological and agricultural potential1. These fungi reside asymptomatically within internal plant tissues and often contribute to host defense mechanisms by producing a diverse array of bioactive compounds, including antimicrobial, antifungal, cytotoxic, and antioxidant agents2,3. Their ability to colonize plant tissues without inducing visible symptoms allows them to establish mutualistic associations, enhancing the host’s resistance to biotic and abiotic stress factors4 Such interactions frequently lead to the biosynthesis of structurally novel and biologically active metabolites that may serve as promising leads for the development of pharmaceutical or agrochemical products5,6. Wrightia tinctoria (Roxb.) R.Br., commonly referred to as the “Dudhi” or “Indraju”, is an ethnomedicinally important species extensively utilized in traditional systems of medicine for treating skin disorders, ulcers, wounds, and inflammatory diseases. The plant is widely distributed in India and Southeast Asia and is known for its antimicrobial, anti-inflammatory, and wound-healing properties. Its phytochemical composition rich in glycosides, steroids, triterpenoids, tannins, phenolics, and flavonoids accounts for its wide-ranging pharmacological effects, including anti-cancer, anti-HIV, anti-diabetic, and antioxidant activities7. Despite the extensive therapeutic usage of W. tinctoria, its associated endophytic mycobiota remains insufficiently characterized, particularly in terms of bioactive metabolite production. Preliminary studies have identified the presence of diverse fungal genera, yet in-depth profiling of their secondary metabolites is lacking. Among these, Xylaria spp. have garnered attention for their biosynthetic potential and role in host defense. Among the various endophytic fungal genera, species of Xylaria (family Xylariaceae) are particularly notable for their capacity to produce a vast repertoire of secondary metabolites. These include terpenoids, alkaloids, polyketides, cytochalasins, and lactones many of which exhibit potent antibacterial, antifungal, anticancer, and anti-inflammatory properties8,9. The metabolic versatility of Xylaria species is underpinned by their complex biosynthetic machinery, enabling the production of chemically diverse and pharmacologically significant natural products10. These endophytic fungi are capable of synthesizing a multitude of compounds with antimicrobial, cytotoxic, antiplasmodial, and enzyme-inhibitory activities11. Over 445 novel bioactive compounds have been reported from Xylaria spp. in the past three decades, highlighting their significance in natural product discovery10. Considering the ecological relevance of W. tinctoria and the biotechnological promise of Xylaria species, the metabolic profiling of their endophytic associations is imperative. Advanced analytical tools, including high-performance liquid chromatography (HPLC), gas chromatography-mass spectrometry (GC–MS), and nuclear magnetic resonance (NMR), facilitate the elucidation of their chemical diversity. In parallel, genomic and transcriptomic approaches can unravel the biosynthetic pathways underlying the synthesis of these metabolites, offering opportunities for metabolic engineering and synthetic biology applications9,12,13. In this study, we aimed to perform a comprehensive metabolic characterization of Xylaria spp. isolated from W. tinctoria. Preliminary phytochemical screening and antioxidant assays were conducted for crude extracts from all isolated endophytes, revealing X. rohrensis as the most promising candidate. X. rohrensis exhibited potent antioxidant, antibacterial, antifungal, and cytotoxic potential, aligning with the known bioactivities of its congeners. Members of Xylaria are known to produce diverse classes of secondary metabolites, such as sesquiterpenoids, polyketides, alkaloids, and cytochalasins14, many of which are linked to therapeutic functions. For X. rohrensis, quantitative estimations of total phenolic and flavonoid content were undertaken, followed by FT-IR and GC–MS analysis of its crude extracts to profile the bioactive constituents responsible for its observed bioactivities. This represents the first in-depth metabolic study of X. rohrensis derived from W. tinctoria, contributing valuable insight into the chemical ecology of endophytic fungi from ethanomedicinal plants. The results not only enrich the repository of fungal secondary metabolites but also support the potential utility of Xylaria spp. in drug discovery and sustainable agriculture. Results Isolation of endophytic fungi Previously isolated and identified endophytic fungi from Wrightia tinctoria R.Br.15 were employed in this study. These authenticated isolates, originally obtained from healthy aerial tissues collected from the southern Aravalli hills, were further investigated for antioxidant, antibacterial, and metabolomics properties (Supplementary Fig. S1). The GenBank accession numbers of the nine isolates are provided in the Supplementary Table S1. Phytochemical analysis The phytochemical screening of the endophytic fungal crude extracts identified the presence of various bioactive compounds, including alkaloids, flavonoids, cardiac glycosides, phenolics, and terpenoids. These phytochemicals are known to contribute to various biological activities. Xylaria rohrensis, and Fusarium cassia exhibited all the phytochemicals except cardiac glycosides. However, Trichoderma longibrachiatum, Periconia epilithographicola, and Lasidoplodia parva contained only phenolics, flavonoids, and terpenoids. Furthemore, Diaporthe caatingaensis and Guignardia musicola displayed the presence of alkaloid along with phenolics and terpenoids. Preliminary phytochemical analysis of these fungal crude extracts is presented in Supplementary Table S2 (The outcomes of the qualitative phytochemical screening for fungal each crude extract is categorized as follows: + + + + express very excessively present, + + + = excessively present, + + = present, + = trace amounts, and — = absent) (Supplementary Table S2 and Fig. 1). Fig. 1Radar plot representing the qualitative phytochemical screening of fungal extracts. Comparative distribution of alkaloids, flavonoids, cardiac glycosides, and phenolics in different endophytic fungal isolates. Radar plot representing the qualitative phytochemical screening of fungal extracts. Comparative distribution of alkaloids, flavonoids, cardiac glycosides, and phenolics in different endophytic fungal isolates. Antioxidant potential of fungal extract The ethyl acetate extracts derived from endophytic fungi isolated from W. tinctoria were analyzed for their antioxidant properties using the DPPH and ABTS assays. The DPPH (2,2-diphenyl-1-picrylhydrazyl) radical scavenging assay is widely regarded as a reliable method for determining antioxidant activity by measuring the capacity of compounds to donate hydrogen atoms and neutralize free radicals. The reduction of DPPH results in a noticeable color change, indicating the radical scavenging. Results from the assay showed that the fungal crude extracts demonstrated a broad range of antioxidant activities at a concentration of 300 µg/mL. Statistical analysis using ANOVA revealed that these differences in scavenging activity among the extracts were statistically significant (p < 0.05) (Supplementary Table S3 and Fig. 2). Fig. 2DPPH radical scavenging activity of fungal extracts. (a) Percent inhibition (PI%) of DPPH radicals by fungal extracts and ascorbic acid (positive control). (b) IC₅₀ values (µg/mL) for selected extracts (Colletotrichum plurivorum, Fusarium cassiae, Xylaria rohrensis) and ascorbic acid. Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). DPPH radical scavenging activity of fungal extracts. (a) Percent inhibition (PI%) of DPPH radicals by fungal extracts and ascorbic acid (positive control). (b) IC₅₀ values (µg/mL) for selected extracts (Colletotrichum plurivorum, Fusarium cassiae, Xylaria rohrensis) and ascorbic acid. Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). Among the tested fungal crude extracts, X. rohrensis exhibited the highest percentage of DPPH radical inhibition (73.92 ± 3.45%), followed by F. cassiae (66.93 ± 3.13%) and Colletotrichum plurivorum (65.00 ± 3.10%). These values were recorded across a concentration range of 30 to 180 µg/mL. A concentration-dependent increase in free radical scavenging activity was observed, with higher extract concentrations resulting in greater inhibition. Consistently, X. rohrensis exhibited the lowest IC₅₀ value (83.83 ± 5.51 µg/mL), indicating its strong antioxidant potential among the fungal isolates derived from W. tinctoria (Fig. 2). In comparison, the standard antioxidant, ascorbic acid, demonstrated the most potent activity, with an IC₅₀ value of 5.72 ± 0.91 µg/mL. The antioxidant potential of the same fungal extracts was further evaluated using the ABTS assay, another radical scavenging method that measures discoloration resulting from the neutralization of ABTS⁺ radicals formed via the reaction between ABTS and potassium persulfate. At a fixed concentration of 300 µg/mL, all fungal extracts showed varied scavenging capacities. One-way ANOVA revealed significant differences (p < 0.05) in antioxidant activity among the extracts. X. rohrensis once again showed the highest inhibition (74.22 ± 2.84%), followed by D. caatingaensis (66.48 ± 3.02%) and C. plurivorum (65.05 ± 2.40%). The IC₅₀ values aligned with those observed in the DPPH assay, with X. rohrensis presenting the lowest value (78.30 ± 4.23 µg/mL). In contrast, the standard compound Trolox exhibited superior activity, achieving 92.90% inhibition at just 20 µg/mL and an IC₅₀ of 6.15 ± 1.84 µg/mL (Fig. 3). Fig. 3ABTS radical scavenging activity of fungal extracts. (a) Percent inhibition (PI%) of ABTS radicals by fungal extracts and Trolox (standard antioxidant). (b) IC₅₀ values (µg/mL) for selected extracts (Colletotrichum plurivorum, Diaporthe caatingaensis, Xylaria rohrensis) and Trolox. Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). ABTS radical scavenging activity of fungal extracts. (a) Percent inhibition (PI%) of ABTS radicals by fungal extracts and Trolox (standard antioxidant). (b) IC₅₀ values (µg/mL) for selected extracts (Colletotrichum plurivorum, Diaporthe caatingaensis, Xylaria rohrensis) and Trolox. Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). Antibacterial activity The antimicrobial potential of metabolic extracts from nine endophytic fungi isolated from W. tinctoria was evaluated against selected bacterial pathogens, including the Gram-positive Staphylococcus aureus (ATCC 25923) and the Gram-negative strains Salmonella typhi (MTCC 3216) and Escherichia coli (ATCC 25922). Notable differences in antibacterial efficacy were observed among the fungal crude extracts (Supplementary Table S4 and Fig. 4 & Supplementary Fig. S2). Among them, X. rohrensis exhibited the most pronounced antibacterial activity against all tested bacterial strains when compared to the other endophytic isolates. This trend was further supported by the minimum inhibitory concentration (MIC) and minimum bactericidal concentration (MBC) values. For X. rohrensis, the MIC and MBC values recorded against S. aureus were 35.47 ± 1.63 µg/mL and 70.95 ± 3.27 µg/mL, respectively. Against E. coli, the values were 38.11 ± 2.62 µg/mL (MIC) and 76.22 ± 3.02 µg/mL (MBC), while S. typhi showed an MIC of 50.77 ± 1.89 µg/mL and an MBC of 101.54 ± 3.79 µg/mL. These findings indicate that X. rohrensis, an endophyte isolated from W. tinctoria, holds considerable promise as a source of bioactive compounds with potent antibacterial properties, capable of inhibiting the growth of multiple pathogenic bacteria. Fig. 4Antibacterial activity of endophytic fungal extracts. (a) Zone of inhibition (mm) of different fungal extracts against Staphylococcus aureus, Salmonella typhi, and Escherichia coli. (b) Minimum inhibitory concentration (MIC, µg/mL), and (c) Minimum bactericidal concentration (MBC, µg/mL) of fungal extracts against the same bacterial strains. Values are means ± SE (n = 3). Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). Antibacterial activity of endophytic fungal extracts. (a) Zone of inhibition (mm) of different fungal extracts against Staphylococcus aureus, Salmonella typhi, and Escherichia coli. (b) Minimum inhibitory concentration (MIC, µg/mL), and (c) Minimum bactericidal concentration (MBC, µg/mL) of fungal extracts against the same bacterial strains. Values are means ± SE (n = 3). Different letters indicate statistically significant differences at p ≤ 0.05 (Tukey’s test). Total phenolic and flavonoids contents Phenolics and flavonoids significantly contribute to the antioxidant capacity of fungal crude extracts due to their ability to neutralize free radicals. Among the nine endophytic fungi isolated from Wrightia tinctoria, X. rohrensis exhibited the highest accumulation of these bioactive metabolites. The total phenolic content in its methanolic extract was measured as 39.14 ± 1.77 mg gallic acid equivalents (GAE) per 100 mg of extract. This estimation was based on a standard calibration curve for gallic acid (y = 0.0004x + 0.0025, R² = 0.9591) within the concentration range of 0–100 µg/mL. Similarly, the total flavonoid content was determined using a quercetin standard curve (y = 0.0004x + 0.0075, R² = 0.9591). Here, X. rohrensis also demonstrated the highest total flavonoid content (TFC) among all isolates, measured as 4.44 ± 0.48 mg quercetin equivalents per 100 mg of fungal extract (Fig. 5). Fig. 5Phytochemical content of fungal extracts. (a) Total phenolic content (TPC) expressed as gallic acid equivalents (GAE/100 mg). (b) Total flavonoid content (TFC) expressed as quercetin equivalents (QE/100 mg). Values are means ± SE of triplicates. Different letters indicate statistically significant differences at p ≤ 0.05. Phytochemical content of fungal extracts. (a) Total phenolic content (TPC) expressed as gallic acid equivalents (GAE/100 mg). (b) Total flavonoid content (TFC) expressed as quercetin equivalents (QE/100 mg). Values are means ± SE of triplicates. Different letters indicate statistically significant differences at p ≤ 0.05. Due to its superior performance in phytochemical richness, pronounced antioxidant potential, and strong antibacterial activity, X. rohrensis was selected for further detailed structural and metabolite characterization using Fourier-transform infrared (FTIR) spectroscopy and gas chromatography–mass spectrometry (GC–MS) analyses. FTIR analysis The FTIR analysis of the ethyl acetate extract of X. rohrensis exhibited prominent absorption bands characteristic of bioactive metabolites. The broad peak observed at 3625 cm⁻¹ indicates the presence of free hydroxyl groups, supporting the occurrence of phenolic compounds and flavonoids. The bands at 3000–2857 cm⁻¹ are indicative of aliphatic C–H stretching vibrations, while the sharp peak at 1719 cm⁻¹ confirms the presence of carbonyl functional groups, attributed to esters, ketones, and fatty acids. Furthermore, the absorption bands at 1630, 1521, and 1426 cm⁻¹ indicate the presence of aromatic compounds and conjugated C = C bonds, which correlate with the phytochemicals identified. Additionally, peaks at 1234, 1078, and 922 cm⁻¹ confirm C–O stretching and aromatic C–H bending vibrations, reinforcing the occurrence of esters, ethers, and aromatic rings in the extract. These spectral observations corroborate the GC–MS results and phytochemical screening, validating the presence of diverse bioactive metabolites in X. rohrensis extract (Fig. 6). Fig. 6FTIR spectrum of Xylaria rohrensis ethyl acetate extract showing key absorption bands of bioactive metabolites. The broad band at 3625.44 cm⁻¹ indicates O–H stretching of phenolics and flavonoids, while peaks at 3000.12–2857.71 cm⁻¹ correspond to C–H stretching of alkanes and terpenoids. A strong peak at 1719.28 cm⁻¹ confirms C = O stretching from esters and ketones, and bands at 1630.05–1426.77 cm⁻¹ suggest aromatic C = C stretching. Peaks at 1234.92 and 1078.33 cm⁻¹ indicate esters and ethers, while 922.21 and 792.94 cm⁻¹ reflect aromatic C–H bending, supporting the presence of complex polyphenolics and terpenoids. FTIR spectrum of Xylaria rohrensis ethyl acetate extract showing key absorption bands of bioactive metabolites. The broad band at 3625.44 cm⁻¹ indicates O–H stretching of phenolics and flavonoids, while peaks at 3000.12–2857.71 cm⁻¹ correspond to C–H stretching of alkanes and terpenoids. A strong peak at 1719.28 cm⁻¹ confirms C = O stretching from esters and ketones, and bands at 1630.05–1426.77 cm⁻¹ suggest aromatic C = C stretching. Peaks at 1234.92 and 1078.33 cm⁻¹ indicate esters and ethers, while 922.21 and 792.94 cm⁻¹ reflect aromatic C–H bending, supporting the presence of complex polyphenolics and terpenoids. GC–MS analysis Gas chromatography–mass spectrometry (GC–MS) analysis of the fungal crude extract from X. rohrensis revealed a total of 147 distinct peaks (Fig. 7). The identified compounds, along with their retention times, molecular weights, molecular formulas, and relative peak areas, are presented in Supplementary Table S5. The analysis indicated the presence of several classes of bioactive metabolites, including terpenoids (5.58%), phenolic compounds (1.13%), esters (11.63%), fatty alcohols (3.15%), ketones (3.77%), and fatty acids (1.17%). Among the compounds detected were: 3,4-Dimethyl-1,2-cyclopentadione; Cyclopropanecarboxylic acid, 2,2,3,3-tetramethyl, methyl ester; 4-Methoxymethoxy-4-methyl-hex-2-ynal; Geranyl vinyl ether; 3-Hexen-2-one, 3,4-dimethyl-; 1,3-Cyclohexadiene, 5,6-dimethoxy-, trans-; R-Limonene; p-Cymene-2,5-diol; 3-Furanacetic acid, 4-hexyl-2,5-dihydro-2,5-dioxo-; Tetracyclo[5.3.1.0(2,6)0.0(8,11)]undecan-4-one, 6-methoxy-2-methyl-; Eicosane; 3,3-Tetramethyleneglutaric acid; Ageratriol; and 1-tert-Butyl-3-(3-methoxyphenyl)-bicyclo[1.1.1]pentane. These findings are summarized in Supplementary Table S5 and illustrated in Fig. 7. To evaluate the interrelationships among phytochemical parameters, antioxidant activity, and antibacterial efficacy of fungal endophytes isolated from W. tinctoria, a Spearman correlation matrix and principal component analysis (PCA) were employed (Figs. 8 and 9). The Spearman correlation matrix (Fig. 8) revealed significant negative correlations between total phenolic content (TPC) and minimum inhibitory concentrations (MIC) of S. aureus (p = − 0.84), S. typhi (p = − 0.78), and E. coli (p = − 0.76). Likewise, total flavonoid content (TFC) showed a strong inverse relationship with DPPH IC₅₀ values (p = − 0.81), suggesting a direct contribution of flavonoids to antioxidant capacity. The DPPH and ABTS assays were positively correlated with each other (p = 0.91), as were TPC and TFC (p = 0.89), indicating a synergistic contribution of phenolics and flavonoids to the antioxidant potential. Interestingly, MIC and MBC values across all tested pathogens showed high positive correlations (p > 0.85), indicating consistent bacteriostatic and bactericidal responses. TPC and TFC vectors clustered opposite to the MIC and MBC vectors, indicating a negative correlation where higher phenolic and flavonoid content corresponds to lower MIC/MBC values, i.e., greater antibacterial efficacy. Fig. 7GC–MS chromatogram of the ethyl acetate extract of Xylaria rohrensis. Major detected compounds are labeled, including 2-methoxy-4-methyl-phenol, tetradecane, 9-cymene, and eugenol among others. The analysis reveals the presence of bioactive metabolites with known antimicrobial and antioxidant activities. GC–MS chromatogram of the ethyl acetate extract of Xylaria rohrensis. Major detected compounds are labeled, including 2-methoxy-4-methyl-phenol, tetradecane, 9-cymene, and eugenol among others. The analysis reveals the presence of bioactive metabolites with known antimicrobial and antioxidant activities. Fig. 8Spearman correlation matrix showing pairwise relationships between total flavonoid content (TFC), total phenolic content (TPC), DPPH and ABTS antioxidant assays, and antibacterial MIC/MBC values against S. aureus, S. typhi, and E. coli. Ellipses denote 95% confidence intervals. Yellow ellipses indicate significant negative correlations between phytochemical content and MIC/MBC values. Spearman correlation matrix showing pairwise relationships between total flavonoid content (TFC), total phenolic content (TPC), DPPH and ABTS antioxidant assays, and antibacterial MIC/MBC values against S. aureus, S. typhi, and E. coli. Ellipses denote 95% confidence intervals. Yellow ellipses indicate significant negative correlations between phytochemical content and MIC/MBC values. Fig. 9Principal component analysis (PCA) biplot of phytochemical, antioxidant, and antibacterial variables for fungal endophytes. PC1 and PC2 explain 63.14% and 25.33% of the total variance, respectively. Vectors represent variable loadings, while points represent fungal species. Xylaria rohrensis and Fusarium cassiae align with antioxidant and phytochemical vectors, indicating high bioactivity. Principal component analysis (PCA) biplot of phytochemical, antioxidant, and antibacterial variables for fungal endophytes. PC1 and PC2 explain 63.14% and 25.33% of the total variance, respectively. Vectors represent variable loadings, while points represent fungal species. Xylaria rohrensis and Fusarium cassiae align with antioxidant and phytochemical vectors, indicating high bioactivity. In the PCA biplot (Fig. 9), the first two principal components (PC1 and PC2) accounted for 63.14% and 25.33% of the total variance, respectively. TPC, TFC, DPPH, and ABTS loadings aligned closely and clustered in the opposite direction to the vectors for MIC and MBC values, highlighting a robust inverse relationship. The loading vectors for S. aureus, S. typhi, and E. coli MIC/MBC values were grouped together, indicating similar response profiles across fungal treatments. X. rohrensis and F. cassiae lie in the direction of the antioxidant and TPC/TFC vectors and away from MIC/MBC vectors, indicating strong bioactivity as reflected by low inhibitory and bactericidal concentrations. In contrast, P. variotii and Colletotrichum plurivorum were closely associated with the MIC/MBC axis, reflecting lower bioactivity. Discussion The present study delves into the bioactive and phytochemical attributes of endophytic fungi isolated from the medicinal plant Wrightia tinctoria. These fungi reside asymptomatically within plant tissues and often mirror or complement the bioactive compound profiles of their host plants16. Among all the isolates Xylaria rohrensis emerging as the most promising isolate, which exhibited outstanding antioxidant and antibacterial activity. This work not only characterizes the metabolic capabilities of endophytic fungi associated with W. tinctoria but also marks the first report of secondary metabolite profiling of X. rohrensis in an endophytic context, thereby contributing novel insights to fungal biology and natural product research. Among the nine isolates, qualitative and quantitative phytochemical screening revealed notable variations in the presence of secondary metabolites such as flavonoids, phenolics, terpenoids, alkaloids, and saponins. Among all isolates, X. rohrensis consistently exhibited the highest total phenolic content (39.14 ± 1.77 mg GAE/100 mg) and total flavonoid content (28.29 ± 1.20 mg RE/100 mg), comparable to values reported in for other endophytic fungi isolated from Arrabidaea chica such as Penicillium and Aspergillus species13,17. These compounds are widely recognized for their antioxidant, anti-inflammatory, and antimicrobial properties, suggesting a promising pharmaceutical relevance of this isolate. Chen et al.10 reported the identification of 445 new compounds in Xylaria spp., many with cytotoxic and antimicrobial activities highlighting their high phenolic content. Specific phenolic constituents, such as ergosterol and various lactones, have also been isolated and are considered key contributors to TPC. In terms of flavonoids, Xylaria polymorpha and Xylaria nigripe have been found to contain flavonoid-like structures, which enhance their therapeutic potential18,19. DPPH and ABTS radical scavenging assays confirmed the antioxidant potency of X. rohrensis, with IC50 values of 83.83 ± 5.51 µg/mL and 78.30 ± 4.23 µg/mL, respectively. These results are comparable to those of other potent antioxidant fungal endophytes such as Xylaria ellisii20 and Xylaria vinacea21. The strong antioxidant activity can be attributed to the rich presence of polyphenols and terpenoids, as evidenced by GC–MS profiling, which identified compounds like 4-hydroxy-β-ionone and p-cymene-2,5-diol, both associated with strong radical scavenging effects10,22. The antibacterial activity of X. rohrensis was validated using MIC and MBC determinations against pathogens including S. aureus and E. coli. MIC values of 35.47 ± 1.63 µg/mL and 38.11 ± 2.62 µg/mL, respectively, highlight significant efficacy. Numerous Xylaria strains have demonstrated varying levels of efficacy against diverse pathogenic bacteria, as reflected by reported MIC and MBC values. For instance, Xylaria sp. (OG-03) exhibited exceptional antibacterial activity, with MIC values as low as 1.95 µg/mL against Pseudomonas syringae and Pseudomonas putida, and 7.81 µg/mL against Chryseobacterium sp., achieving up to 88% inhibition23. Similarly, endophytic Xylaria sp. YX-28 demonstrated MIC values ranging from 4 to 40 µg/mL against various bacterial strains, including S. aureus (16 µg/mL) and E. coli (10 µg/mL)24. In contrast, wild Xylaria sp. R005 displayed relatively moderate antibacterial activity, with MIC values between 120 µg/mL and 625 µg/mL against multidrug-resistant strains of S. aureus and P. aeruginosa25. Interestingly, while other species within the Xylaria genus have shown antimicrobial potential, this is the first comprehensive demonstration of such effects in X. rohrensis, especially from an endophytic origin, further underscoring the novelty of the current investigation. This dual antioxidant and antibacterial potential positions X. rohrensis as a valuable candidate for natural product-based drug discovery. To gain deeper insights into the nature of bioactive constituents, Fourier-transform infrared (FTIR) spectroscopy was employed on the ethyl acetate extract of X. rohrensis. The FTIR spectrum of X. rohrensis extract revealed characteristic absorption bands corresponding to hydroxyl (–OH), carbonyl (C = O), and aromatic (C = C) functional groups, along with amide and ether linkages. These functional vibrations confirm the presence of phenolic, flavonoid, and terpenoid compounds, corroborating the qualitative phytochemical analysis. These outcomes resemble FTIR profiles reported in recent studies on X. ellisii, X. vinacea, and Xylaria sp. KET1826–28 affirming FTIR as a reliable tool for rapid compound class identification. Complementing the FTIR findings, chemical profiling of the X. rohrensis extract using GC–MS revealed a unique metabolite spectrum including compounds such as 3-Methoxy-5-methylphenol, Orcinol, and Dehydromevalonic lactone. These metabolites are known for their antimicrobial, antioxidant, and anti-inflammatory properties. Notably, 3-Methoxy-5-methylphenol has been previously reported to possess dual radical scavenging and antibacterial effects, while Orcinol is a well-established phenolic with significant therapeutic potential28,29. This chemical profile of X. rohrensis not only justifies the biological performance of the extract but also highlights the underexplored metabolic potential of this fungal species. To validate the relationship between phytochemical richness and bioactivity, statistical analyses including principal component analysis (PCA) and Spearman correlation were performed to uncover the latent patterns among phytochemical traits (TPC and TFC), antioxidant capacity (DPPH and ABTS assays), and antibacterial parameters (MIC and MBC values against S. aureus, S. typhi, and E. coli). The PCA biplot (Fig. 9) accounted for 88.47% of the total variance (PC1: 63.14%, PC2: 25.33%), indicating a high degree of explanatory power. PC1 predominantly distinguished samples based on their antioxidant (DPPH, ABTS) and phytochemical traits (TPC, TFC), while PC2 offered further discrimination via antibacterial efficacy (MIC and MBC values). Notably, X. rohrensis clustered closely with vectors representing ABTS, DPPH, TPC, and TFC, affirming its potent antioxidant and phytochemical richness, as detailed earlier. The distant placement of L. parva and G. musciola from all vectors underscores their relatively poor bioactivity profiles. Complementing PCA, the Spearman correlation matrix (Fig. 8) revealed statistically significant negative correlations between MIC/MBC values and phytochemical/antioxidant markers. TPC and TFC exhibited strong inverse relationships with all antibacterial indices (r = − 0.81 to − 0.84), affirming that higher metabolite richness correlates with lower MIC/MBC values, i.e., enhanced antibacterial potency. These findings reinforce the bioefficacy model where metabolite accumulation, particularly phenolics and flavonoids, is predictive of biological activity, consistent with other chemometric studies on endophytes17,30. This echoes previous studies on other fungal endophytes from Camellia sinensis and Acorus calamus, where statistical clustering matched metabolomic signatures26. In conclusion, this study is the first to characterize X. rohrensis as an endophyte producing a diverse array of bioactive compounds with strong antioxidant and antimicrobial properties. The combined use of FTIR and GC–MS provided complementary insights into the chemical nature of these metabolites. These findings open up new avenues for natural product discovery and bioresource utilization from endophytic fungi, with potential applications in pharmaceuticals, agriculture, and biomedicine. Materials and methods Isolation and identification of endophytic fungi Endophytic fungi were isolated from healthy aerial tissues (leaves, stems, and bark) of Wrightia tinctoria (R.Br.) collected from the southern Aravalli hills, Rajasthan, India. Sample processing was carried out as described in the previous study15. Emerging fungal colonies were purified through repeated sub-culturing and maintained as pure cultures. All nine isolates were further identified by ITS rDNA sequencing, and the GenBank accession numbers of the isolates are listed in Supplementary Table S1. Preparation of fungal crude Crude extracts of the endophytic fungal isolates were prepared by inoculating 4–5 mycelial discs into 500 mL Erlenmeyer flasks containing 200 mL of potato dextrose broth (PDB) supplemented with streptomycin sulfate (150 µg/mL) to inhibit bacterial growth. The cultures were incubated at 26 ± 2 °C for 21 days in a BOD incubator under static conditions. After the incubation period, the fungal biomass was separated from the broth by filtration through sterile cheesecloth. The resulting culture filtrate underwent solvent extraction using ethyl acetate in a separating funnel. This extraction was performed in triplicate to ensure maximum yield of secondary metabolites. The combined ethyl acetate fractions were concentrated using a rotary evaporator set at 40 °C and 65 rpm. Residual solvent was eliminated by air-drying the extracts under a fume hood. Finally, the dried crude extracts were transferred to pre-weighed sterile glass vials and stored for further chemical and biological analyses31,32. Phytochemical screening of sequentially extracted fungal crude metabolites of the isolated endophytic fungi Phytochemical screening of the fungal crude extracts was performed to identify key classes of secondary metabolites, including phenolics, flavonoids, alkaloids, terpenoids, and cardiac glycosides, following standard protocols with slight modifications tailored for fungal samples. The presence of phenolic compounds was confirmed by the formation of a dark green color upon addition of 5% ferric chloride solution33. Flavonoids were detected by mixing the extract with dilute sodium hydroxide, which produced a yellow color that faded upon acidification34. Terpenoids were assessed using the Salkowski test, where a reddish-brown coloration at the interface indicated their presence35. Alkaloids were identified by the formation of a cream-colored precipitate after treatment with Mayer’s reagent33. Cardiac glycosides were confirmed through the formation of a brown ring at the interface after sequential treatment with glacial acetic acid, ferric chloride, and concentrated sulfuric acid36. This comprehensive phytochemical evaluation highlights the metabolic richness of the fungal crude extracts and their potential as sources of biologically active compounds. Antioxidant activities The antioxidant potential of fungal crude extracts of fungal endophytes reported from W. tinctoria was estimated using DPPH and ABTS assays. DPPH assay The antioxidant activity of fungal crude extracts was evaluated using the DPPH free radical scavenging assay, originally described by Wu et al.37, with minor modifications. Methanolic solutions of each fungal extract were prepared at a concentration of 1 mg/ml. A 10 µL aliquot of this solution was mixed with 290 µL of 0.2 mM DPPH solution (Sigma) in test tubes. The reaction mixture was incubated for 30 min at room temperature in the dark. A solution containing 10 µL of methanol and DPPH served as the blank, while ascorbic acid was used as a standard antioxidant reference. Following incubation, the absorbance was measured at 517 nm. A decrease in absorbance indicated higher radical scavenging activity of the extract. The percentage inhibition of DPPH radicals was calculated using the formula:\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\mathbf{R}\mathbf{a}\mathbf{d}\mathbf{i}\mathbf{c}\mathbf{a}\mathbf{l}\:\mathbf{S}\mathbf{c}\mathbf{a}\mathbf{v}\mathbf{e}\mathbf{n}\mathbf{g}\mathbf{i}\mathbf{n}\mathbf{g}\:\mathbf{A}\mathbf{c}\mathbf{t}\mathbf{i}\mathbf{v}\mathbf{i}\mathbf{t}\mathbf{y}\:\left(\mathbf{\%}\right)=\left(\frac{{\mathbf{A}}_{\mathbf{B}\mathbf{l}\mathbf{a}\mathbf{n}\mathbf{k}}-{\mathbf{A}}_{\mathbf{T}\mathbf{e}\mathbf{s}\mathbf{t}\:\mathbf{S}\mathbf{a}\mathbf{m}\mathbf{p}\mathbf{l}\mathbf{e}}}{{\mathbf{A}}_{\mathbf{B}\mathbf{l}\mathbf{a}\mathbf{n}\mathbf{k}}}\right)\times\:100$$\end{document} Where ABlank is the absorbance of the negative control (DPPH + methanol), and ATest Sample is the absorbance of the fungal extract. The IC50 value, defined as the concentration required to inhibit 50% of DPPH radicals, was determined by plotting the percentage scavenging activity against various concentrations of the extract. All tests were performed in triplicate to ensure accuracy and reproducibility38. ABTS assay The ABTS assay was employed to assess the free radical scavenging efficiency of the fungal extracts, based on their ability to neutralize ABTS radicals. This method followed the protocol of Kaaniche et al.39, with slight adjustments. A stock solution was prepared by mixing 7 mM ABTS with 2.45 mM potassium persulfate in equal volumes, which was then kept in the dark at room temperature overnight to allow radical generation. The resulting ABTS solution was diluted with methanol to obtain an absorbance of 0.700 ± 0.05 at 734 nm, creating the working solution. For each assay, 50 µL of fungal extract (or Trolox as the standard antioxidant) was added to 1950 µL of the ABTS working solution. The mixture was vortexed for uniform mixing and then incubated in the dark at room temperature for 30 min. Absorbance was measured at 734 nm using a Shimadzu UV-1900i spectrophotometer, with methanol as the blank. The radical scavenging activity was calculated as:\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\mathbf{R}\mathbf{a}\mathbf{d}\mathbf{i}\mathbf{c}\mathbf{a}\mathbf{l}\:\mathbf{S}\mathbf{c}\mathbf{a}\mathbf{v}\mathbf{e}\mathbf{n}\mathbf{g}\mathbf{i}\mathbf{n}\mathbf{g}\:\mathbf{A}\mathbf{c}\mathbf{t}\mathbf{i}\mathbf{v}\mathbf{i}\mathbf{t}\mathbf{y}\:\left(\mathbf{\%}\right)=\left(\frac{{\mathbf{A}}_{\mathbf{B}\mathbf{l}\mathbf{a}\mathbf{n}\mathbf{k}}-{\mathbf{A}}_{\mathbf{T}\mathbf{e}\mathbf{s}\mathbf{t}\:\mathbf{S}\mathbf{a}\mathbf{m}\mathbf{p}\mathbf{l}\mathbf{e}}}{{\mathbf{A}}_{\mathbf{B}\mathbf{l}\mathbf{a}\mathbf{n}\mathbf{k}}}\right)\times\:100$$\end{document} Where ABlank is the absorbance of the ABTS solution without extract, and ATest Sample is the absorbance with the fungal extract. The IC50 value was determined by plotting the scavenging activity against different extract concentrations. Trolox served as the positive control for reference. Each test was conducted in triplicate to ensure consistency32. Total phenolic and total flavonoid content The total phenolic and flavonoid contents of the fungal crude extracts were quantified using spectrophotometric methods with minor modifications from established protocols40,41. For phenolic content estimation, 500 µL of fungal extract was mixed with 100 µL of 0.5 N Folin–Ciocalteu reagent and incubated at room temperature for 15 min to facilitate the initial reaction. Subsequently, 2.5 mL of sodium carbonate solution was added to the mixture and vortexed to ensure homogeneity. The reaction was allowed to proceed at room temperature for 30 min, resulting in the formation of a blue-colored complex. The absorbance of the mixture was measured at 765 nm using a UV-visible spectrophotometer. Quantification was performed using a gallic acid calibration curve, and results were expressed as milligrams of gallic acid equivalents per 100 mg of fungal extract (mg GAE/100 mg)17. Flavonoid content was determined by combining 125 µL of the fungal extract with 50 µL of 5% sodium nitrite, followed by the addition of 75 µL of 10% aluminum chloride solution. After a 6-minute incubation period, 250 µL of 1 M sodium hydroxide was added, and the final volume was adjusted to 10 mL with double-distilled water. The solution was mixed thoroughly, and absorbance was measured at 510 nm. A quercetin calibration curve (5–200 µg/ml) was used to estimate flavonoid content, which was expressed as milligrams of quercetin equivalents per 100 mg of fungal extract (mg QE/100 mg). All analyses were conducted in triplicate to ensure the reliability and reproducibility of the results. Antibacterial activity The antibacterial efficacy of fungal crude extracts obtained from endophytic fungi associated with W. tinctoria was investigated through both qualitative and quantitative approaches. The disc diffusion method was employed to screen the crude extracts against three bacterial pathogens: Staphylococcus aureus (ATCC 25923), representing Gram-positive bacteria, and two Gram-negative strains, Salmonella typhi (MTCC 3216) and Escherichia coli (ATCC 25922). Sterile filter paper discs (5 mm diameter, Whatman No. 3) were impregnated with 10 µL of the fungal extract (1 mg/10 mL concentration) and air-dried under aseptic conditions. The bacterial suspensions were prepared in 0.85% sterile saline and standardized to an optical density of 0.08–0.1 at 625 nm, corresponding to approximately 1–2 × 10⁸ CFU/mL (0.5 McFarland standard). The bacterial cultures were uniformly spread on Mueller-Hinton agar plates, after which the fungal extract-impregnated discs were placed on the agar surface. Chloramphenicol discs (20 µg) were used as positive controls, and methanol-soaked discs served as negative controls. The plates were incubated at 37 °C in a BOD incubator for 24 h. Following incubation, the zones of inhibition were measured in millimeters. Each test was conducted in triplicate, and the results were presented as mean values with standard deviations to ensure reproducibility42. To further quantify antibacterial activity, the minimum inhibitory concentration (MIC) and minimum bactericidal concentration (MBC) of the crude extracts were determined using a modified macro-broth dilution assay. The bacterial inoculum, adjusted to 0.5 McFarland standard (~ 1.5 × 108 CFU/mL), was prepared from an overnight culture. A stock solution of the fungal extract (2 mg/mL) was prepared in Mueller-Hinton broth by vortexing. Serial dilutions were carried out to obtain final concentrations of 100, 200, 300, 400, and 500 µg/mL in sterile test tubes. Each tube was then inoculated with 10 µL of bacterial suspension and incubated at 37 °C for 36–48 h. The MIC was recorded as the lowest concentration of extract that showed no visible bacterial growth. To determine the MBC, a 10 µL aliquot from tubes showing no turbidity was spread onto Mueller-Hinton agar plates and incubated at 37 °C for an additional 24–48 h. The MBC was defined as the minimum extract concentration required to eliminate 99.9% of the bacterial population, indicated by the absence of colony growth on agar plates43,44. All experiments were performed in triplicate to validate consistency and reliability. This combined disc diffusion and broth dilution approach enabled a comprehensive assessment of the antimicrobial potential of the fungal crude extracts. FTIR spectral analysis FTIR spectral analysis of fungal crude extract of X. rohrensis was carried out using a Thermo Scientific Nicolet iS50 FTIR spectrometer operating in the mid-infrared region (4000–400 cm⁻¹) at a resolution of 4 cm⁻¹. Each spectrum was obtained by averaging 32 scans to enhance the signal-to-noise ratio. Background correction was applied using a pure KBr pellet under identical conditions to eliminate atmospheric and instrumental interferences. The obtained spectra were analyzed using OMNIC™ software (Thermo Scientific) to assign characteristic absorption bands, and the functional groups were identified by comparing the peaks with standard reference data. GC–MS analysis A comprehensive chemical profiling of the endophytic fungal crude extract of X. rohrensis was conducted using a TRACE™ 1300 Gas Chromatograph coupled with a TSQ 9000 Triple Quadrupole Mass Spectrometer (Thermo Fisher Scientific, Waltham, Massachusetts, USA). For compound separation, a dual-column configuration was employed, consisting of a TG-SQC front column (15 m length, 0.25 mm internal diameter, 0.25 μm film thickness) and a TG-1MS back column (30 m length, 0.25 mm internal diameter, 0.25 μm film thickness). These columns are composed of 5% phenyl methylpolysiloxane and 100% dimethylpolysiloxane, respectively, which are known for their efficient separation capabilities. The oven temperature in the gas chromatograph was initially set at 60 °C and held constant for 10 min. It was then ramped up to 250 °C and maintained at this temperature for 15 min to ensure adequate resolution of volatile constituents. A 1 µL aliquot of each sample, pre-diluted 1:100 in GC-grade methanol and loaded into gas-tight vials, was injected automatically via an AI 1310 autosampler in split mode (split ratio 1:50). The injector temperature was maintained at 250 °C, and the ion source temperature was set to 300 °C. Helium served as the carrier gas at a constant flow rate of 1.0 mL/min. Mass spectrometric detection was carried out in electron ionization mode at 70 eV with an ionization current of 0.7 kV, allowing for high-resolution ionization and fragmentation. Fragmentation patterns were compared against the NIST mass spectral library (Gaithersburg, MD, USA), to facilitate compound identification. Quantitative analysis involved the assessment of retention times, peak areas, and the relative abundance of compounds, expressed as percentages of the total chromatographic area. The Thermo Scientific™ Dionex™ Chromeleon™ 7 software (version 7.3, build 60919) was utilized for chromatographic data acquisition and interpretation, ensuring precise and systematic analysis. This integrated GC–MS approach enabled a detailed and reliable characterization of the fungal crude extract, offering valuable insight into its chemical composition for subsequent applications and studies. Conclusion This study establishes Xylaria rohrensis as a metabolically diverse and biologically potent endophytic fungus associated with Wrightia tinctoria. Among nine isolates, X. rohrensis exhibited the highest phenolic and flavonoid contents, correlating strongly with its pronounced antioxidant and antibacterial activities. FTIR spectroscopy confirmed the presence of hydroxyl, carbonyl, and aromatic functional groups characteristic of phenolic and flavonoid compounds, while GC–MS profiling revealed a broad spectrum of bioactive metabolites, including terpenoids, fatty acids, and esters linked to its biological efficacy. Multivariate chemometric analyses further substantiated the strong correlation between metabolite diversity and functional performance. This work represents the first comprehensive account of X. rohrensis as an endophyte, revealing its potential as a valuable bioresource for the discovery of pharmacologically and agriculturally significant natural products, and underscoring the importance of endophytic fungi as reservoirs of chemically diverse bioactive compounds. Supplementary Information Below is the link to the electronic supplementary material. Supplementary Material 1 Supplementary Material 1