3.1. Extraction Yield and Phytochemical Profile of Extracts
The distribution of phytochemical compounds in leaf and twig extracts shows differences in the number of phytochemical compounds based on polarity. The yield values vary, with the percentage yield range of leaves and twigs being 1.24–10.75% and 3.81–18.61%, respectively (
Table 2). Previous research showed that the acetone extract yield of leaves was 10% [
10]. The extraction yield of leaves follows a trend from low to high as leaf hexane (LH), leaf ethyl acetate (LE), leaf methanol (LM), and leaf water (LW). Meanwhile, the extraction yield trend of twigs from low to high is twig hexane (TH), twig ethyl acetate (TE), twig methanol (TW), and twig methanol (TM). Water and methanol extracts produced higher extraction yields compared to hexane and ethyl acetate extracts in both parts of the tree used. This indicates that
M. azedarach leaves and twigs contain more polar phytochemical compounds compared to nonpolar phytochemical compounds. Leaf extracts contain more highly polar phytochemical compounds, indicated by the higher LW yield compared to LM, although not significantly different. Conversely, TW extracts have a higher yield compared to TM, indicating that
M. azedarach twigs contain fewer highly polar phytochemical compounds.
Leaf and twig extracts contain alkaloids, flavonoids, hydroquinone phenols, steroids, triterpenoids, tannins, and saponins, with varying compositions depending on the type of solvent used for extraction. Methanol extracts from both leaves and twigs were found to contain all these compounds (
Table 3). A similar pattern was observed in the presence of alkaloids, steroids, and triterpenoids. Ethyl acetate extracts from both plant parts did not contain alkaloids, while water extracts lacked both steroids and triterpenoids. This is likely due to the polarity of the solvents, as steroids and terpenoids are hydrocarbon compounds dominated by carbon and hydrogen atoms, making them non-polar and less soluble in water.
Quantitative analysis showed that phenolic and flavonoid compounds were more abundant in the more polar extracts. The highest levels of phenolic compounds were observed in the methanol extracts of both leaves and twigs, which were significantly different from the other extracts (
Table 4). The trend in phenolic content for both leaf and twig extracts followed a similar pattern from lowest to highest: LE < LW < LM. Meanwhile, the highest flavonoid levels were found in the methanol leaf extract and the ethyl acetate twig extract.
The type of extraction solvent influences the chemical composition of the resulting extracts, as evidenced by the FTIR spectra obtained from the twig and leaf extracts. In general, the FTIR spectra of the twig and leaf extracts show similarities (
Figure 2). These similarities are also observed among extracts prepared with specific solvents. For instance, the hexane extract exhibits similarities with the ethyl acetate (EtOAc) extract, while the methanol extract resembles the water extract. Differences between the FTIR spectra of the extracts, as well as between tree parts, are observed in the peaks within the wavenumber ranges of 2500–4000 cm
−1 and below 2000 cm
−1. These variations suggest the presence of highly polar compounds such as carbohydrates, tannins, and water-soluble phenolic acids. Overall, the spectra reflect a polarity trend, with hexane extracting non-polar components and water extracting highly polar compounds.
The hexane and ethyl acetate extracts exhibit characteristic peaks corresponding to C–H and C = O groups (
Figure 2a,b). Peaks in the wavenumber range of 2800–3000 cm
−1 represent C–H stretching vibrations of alkanes. Additionally, peaks at 1450–1470 cm
−1 correspond to C–H bending vibrations. These peaks are prominent in both twig and leaf extracts, indicating the presence of hydrocarbons or non-polar compounds, which are typically extracted by hexane. Both extracts also exhibit peaks in the range of 1500–1750 cm
−1, attributed to C = O stretching in esters or ketones. The C–H peaks have higher absorbance in the ethyl acetate extract, while C = O peaks show greater absorbance in the same extract. Furthermore, a broad peak with low absorbance in the range of 3000–3750 cm
−1, characteristic of O–H functional groups, indicates that hexane and EtOAc extracts are dominated by non-polar hydrocarbons with minor contributions of compounds containing O–H groups in the ethyl acetate extracts of twigs and leaves.
The methanol and water extracts of twigs and leaves contain polar compounds, as indicated by the presence of O–H and C–O absorption peaks (
Figure 2c,d). C–O stretching vibrations are observed in the wavenumber range of 1000–1300 cm
−1, while broad and intense peaks around 3000–3750 cm
−1 correspond to O–H stretching. Peaks near 1600–1650 cm
−1 may correspond to C = C stretching in aromatic compounds. These peaks suggest the presence of polar compounds such as tannins, phenolics, carboxylic acids, or polysaccharides, consistent with the polar nature of methanol and water as solvents. These FTIR spectrum profiles confirm the alignment of the relationship with high TPC and TFC values in methanol extracts.
Hexane and ethyl acetate extracts contain long-chain alkanes, fatty acids and their derivatives. GC-MS analysis reveals that leaf extracts contain longer-chain hydrocarbons compared to twig extracts (
Table 5). This is evidenced by higher concentrations of eicosane and heptacosane in leaf extracts, whereas twig extracts contain higher levels of tricosane and hexacosane. Consistent with the FTIR spectra, which showed absorption bands corresponding to O–H, C = O, and ester groups, the ethyl acetate twig extract was hypothesized to contain compounds such as tricosanol, palmitic acid, and methyl palmitate. Meanwhile, the ethyl acetate leaf extract exhibited functional groups that may be associated with phytol, tocopherol, and isofucosterol, which possess O–H and C–O–C structures. Based on GC-MS results, the dominant compounds for each extract were tetradecane (TH), tridecane (TE), heptacosane (LH), and isofucosterol (LE).
The three leaf extracts, obtained using different solvents, exhibit significant variations in their chemical composition based on LC-MS analysis (
Table 6). The LE extract is presumed to have higher concentrations of meliasenin I and K compared to the LM and LW extracts. These compounds were previously isolated from the fruits of
M. azedarach [
27]. The compounds 3′,4′-Dihydroinfectopyrone, HME, and (-)-loliolide are more abundant in the LM extract. While no prior reports have identified 3′,4′-Dihydroinfectopyrone and HME, (-)-loliolide has been identified in the roots of
M. azedarach [
28]. Meanwhile, the LW extract contains a relatively high abundance of succinic acid, which has also been reported in the leaves of
M. azedarach [
29].
Compounds in the twig extract exhibit limited similarity in terms of their most abundant components. 3′,4′-Dihydroinfectopyrone was found to have relatively higher abundance compared to other compounds in the ethyl acetate, methanol, and water extracts, with a trend of increasing abundance from TW, TM, to TE (
Table 6). This compound has not been previously identified in
Melia azedarach. Additionally, meliasenin M/N/O was detected in the LE extract. These three compounds are indistinguishable due to their identical molecular weights and were previously identified in the ethanol extract of
M. azedarach fruit [
27]. In the TM extract, melazolide B, loliolide, and methyl dihydrojasmonate were detected with relatively higher abundance compared to other compounds. Melazolide B and loliolide have been isolated from the ethyl acetate extract of
M. azedarach roots and methanol extract of its leaves, respectively [
30,
31]. Loliolide is also suggested to have considerable abundance in the TW extract. Furthermore, 15-O-deacetyl-15-O-methylnimbolidin A was identified with a relative abundance of 2.25%, and this compound has been previously reported in the methanol extract of
M. azedarach fruit [
32].
3.2. Antibacterial Activity
In general, leaf and twig extracts of
M. azedarach exhibited antibacterial activity against
E. coli and
B. subtilis (
Table 7). The leaf and twig extracts showed a similar trend in MIC and MBC values against
E. coli. Meanwhile, the leaf extract exhibited stronger antibacterial activity against
B. subtilis than the twig extract, as indicated by their respective MIC and MBC values. The MIC values ranged from 1 to >20 mg/mL, while the MBC values ranged from 2 to >20 mg/mL. Compared to the positive control (chloramphenicol), all extracts showed higher MIC and MBC values, indicating that the antibacterial activity of the extracts was weaker than that of the control. The strongest extract was 40 times less effective than chloramphenicol in killing
E. coli. In contrast, the
M. azedarach extract was 400 times less effective in killing
B. subtilis compared to chloramphenicol.
Differences in plant parts led to more specific antibacterial effects. Twig extracts showed better activity against
E. coli, while leaf extracts were more effective against
B. subtilis. Specifically, methanol extracts from both leaves and twigs exhibited the strongest activity against
E. coli. Meanwhile, the bactericidal activity against
B. subtilis was demonstrated by the methanol leaf extract and the ethyl acetate twig extract. Methanol leaf extracts of
M. azedarach have previously been reported to exhibit antibacterial activity against
Staphylococcus aureus,
Staphylococcus epidermidis,
E. coli, and
Pseudomonas aeruginosa [
13].
Consistent with their activity against non-MDR
E. coli, the methanol extracts from both leaves and twigs exhibited the strongest antibacterial effects. A similar trend was observed against enteropathogenic
E. coli K1-1, with activity following the order methanol > ethyl acetate > hexane > water extracts (
Table 8). The methanol leaf extract produced a greater inhibition zone compared with the methanol twig extract. In addition, the inhibition zone diameters of the leaf extracts were larger than those of the twig extracts. However, the relative inhibition zone diameter displayed a different trend, with the twig extract showing a higher average percentage than the leaf extract.
The chemical composition of the extracts, which is influenced by the type of extraction solvent, also affected their antibacterial activity. Non-polar compounds from the leaves did not show strong antibacterial activity compared to other leaf extracts. This was indicated by the weak antibacterial effect of the hexane leaf extract against both E. coli and B. subtilis. A similar trend was observed in the hexane twig extract, which showed the weakest activity against E. coli among all twig extracts. However, an opposite pattern was found in the aqueous twig extract, which showed poor activity against B. subtilis.
The phenolic and flavonoid contents of the extracts are related to their antibacterial properties. Methanol extracts of leaves and twigs exhibited stronger antibacterial activity compared to other extracts, which is associated with their higher TPC and TFC values (
Table 4). This phenomenon was not clearly observed in the antibacterial activity against
B. subtilis. The methanol extracts of leaves and twigs, despite having high phenolic and flavonoid contents, did not show a positive correlation with antibacterial activity against
B. subtilis. However, a unique phenomenon was observed regarding the flavonoid content in the leaves. The methanol extract of the leaves, characterized by the highest and statistically significant flavonoid concentration, demonstrated the most pronounced antibacterial activity against
E. coli K1-1.
3.3. Binding Mechanism of Phytocompounds
The antibacterial activity of various chemical compounds involves diverse mechanisms targeting specific bacterial proteins. Several proteins examined in this study are critical for bacterial survival and serve as potential targets for inhibition. The enoyl-[acyl-carrier-protein] reductase (FabI) is involved in bacterial fatty acid synthesis, and its inhibition disrupts lipid metabolism [
33]. FtsZ, a key protein in bacterial cell division, is another promising target for antibacterial agents that aim to interfere with cytokinesis [
33]. The AcrAB-TolC efflux pump, a multidrug resistance complex, expels toxic compounds from the bacterial cytoplasm, playing a significant role in antibiotic resistance [
34]. Similarly, AcrD, an RND-type efflux pump, specializes in removing aminoglycosides and other toxic substances from bacterial cells [
35].
Phytochemical compounds from twig and leaf extracts exhibit varying binding affinities to these target proteins. Compounds with the highest binding affinity for each protein include meliasenin O for ACP reductase, meliasenin N for FtsZ, melianone for TolC, meliasenin M for AcrA and AcrD, and isofucosterol for AcrB (
Table 9). These best-docked phytocompounds resulted in numerous interactions with the targeted protein, namely hydrogen bonds, van der Waals forces, alkyl interactions, and pi-sigma interactions (
Figure 3). Notably, meliasenin M/N/O compounds, abundant in the TE extract, have not been previously reported for their antibacterial activity. Studies indicate that an isomer of isofucosterol, fucosterol, exhibits significant antibacterial activity against
E. coli [
36]. Additionally, melianone has been reported to inhibit
Salmonella typhi by binding to the periplasmic opening of the FocA channel protein, increasing formate concentration, reducing bacterial populations, and causing severe membrane disruption [
37]. These findings suggest that the antibacterial activity of the extracts may involve multiple mechanisms and synergistic interactions among various phytochemical components.
The binding affinity values of each phytocompound can serve as an initial indication of the antibacterial mechanism of the leaf extract. Several compounds with relatively high abundance in specific extracts also exhibit significant binding affinity to certain proteins. Isofucosterol, for example, is relatively abundant in the LE extract. Additionally, meliasenin I and K, which are also present in relatively high concentrations in the LE extract, demonstrates high binding affinity to the ACP reductase protein. This suggests a potential antibacterial mechanism of LE through the inhibition of ACP reductase, although the antibacterial activity of LE against E. coli and B. subtilis are not superior to those of LM. However, several phytocompounds in the LM extract with relatively high abundance (e.g., loliolide, meliazolide B, HME, and 3′,4′-dihydroinfectopyrone), as identified in this study, do not exhibit superior binding affinity to the tested proteins. This suggests that other unidentified compounds may be responsible for the antibacterial activity of the LM extract.
Phytocompounds with relatively high abundance in twig extracts did not show superior binding affinity compared to other compounds. The TH and TE extracts contained a high proportion of long-chain alkanes based on GC–MS analysis; however, these compounds did not demonstrate significant binding affinity relative to other phytocompounds. A similar observation was obtained from the LC–MS analysis, in which the TE, TM, and TW extracts were found to contain relatively high levels of 3′,4′-dihydroinfectopyrone. Nevertheless, this compound also did not exhibit strong binding affinity. The TE and TM extracts exhibited the highest antibacterial activity against E. coli and B. subtilis. Meliasenin M/N/O, which had a relative abundance of 1.5%, was higher than that of other compounds and showed strong binding affinity toward several target proteins. Meanwhile, the TM extract contained relatively high levels of meliazolide B and (-)-loliolide compared to other compounds, but these phytocompounds did not exhibit binding affinities as high as those of other compounds. Based on these findings, the antibacterial activity of the twig extracts was likely the result of synergistic effects among various compounds within the extracts. It is also possible that other unidentified compounds in the twig extracts played a significant role in their antibacterial activity.
In relation to the antibacterial activity of the methanol extracts against EPEC K1-1, other compounds potentially responsible for this activity may not yet have been identified in the extracts. The leaf methanol extract was dominated by (-)-loliolide, methyl dihydrojasmonate, HME, and 3′,4′-dihydroinfectopyrone, whereas the twig methanol extract was primarily composed of 3′,4′-dihydroinfectopyrone, melazolide B, (-)-loliolide, and methyl dihydrojasmonate. However, none of these compounds showed strong predicted binding affinities toward the targeted proteins. This may also suggest that their antibacterial mechanisms do not involve interactions with the specific proteins investigated in this study.
Overall, the in silico analysis indicates that the antibacterial activity of M. azedarach extracts is not solely related to the dominant compounds. Although several phytocompounds, such as isofucosterol and meliasenin derivatives, exhibited strong binding affinities to antibacterial target proteins, other compounds with relatively high abundance showed weaker interactions. This suggests that the antibacterial activity of both leaf and twig extracts is likely associated with synergistic or complementary effects among multiple compounds. In addition, the antibacterial activity may also be influenced by other unidentified compounds present in the extracts.