This article aims at investigating the complex relationship between the local population and its natural and urban environment. The study of area which, is previously dominated by cereal cultivation, facing profitability challenges due to climate change, water scarcity Rapid urban expansion and overexploitation of aquifers, influenced by changes in agricultural practices, are disrupting the local ecosystem. The study relies on three interconnected indicators: population growth, climate change effects on agriculture, and the NDVI (Normalized Difference Vegetation Index) reveal the impact of these factors on agricultural practices. Google Earth Engine was employed to determine urbanization and greenness indices using scripts. Key findings include a shift towards intensive and protected agriculture, driven by individual and collective choices of official and unofficial actors, deviating from government directives. Additionally, the study highlights the unsustainability of this new agricultural direction, as the available water re-sources cannot meet the demands, potentially leading to recurrent agricultural shortages. The study underscores the importance of incorporating agricultural production into future urban planning and development programs to maintain a renewed balance between built environ-ments and agriculture on the outskirts of cities.