Understanding the evolution and the effect of plasticity in plant responses to environmental changes is crucial to combat global climate change. It is particularly interesting in species that survive in distinct environments, such as Eugenia uniflora, which thrives in contrasting ecosystems within the Atlantic Forest (AF). In this study, we combined transcriptome analyses of plants growing in nature (Restinga and Riparian Forest) with greenhouse experiments to unveil the DEGs within and among adaptively divergent populations of E. uniflora. We compared global gene expression among plants from two distinct ecological niches. We found many differentially expressed genes between the two populations in natural and greenhouse-cultivated environments. The changes in how genes are expressed may be related to the species’ ability to adapt to specific environmental conditions. The main difference in gene expression was observed when plants from Restinga were compared with their offspring cultivated in greenhouses, suggesting that there are distinct selection pressures underlying the local environmental and ecological factors of each Restinga and Riparian Forest ecosystem. Many of these genes engage in the stress response, such as water and nutrient transport, temperature, light intensity, and gene regulation. The stress-responsive genes we found are potential genes for selection in these populations. These findings revealed the adaptive potential of E. uniflora and contributed to our understanding of the role of gene expression reprogramming in plant evolution and niche adaptation.