Nannorrhops ritchieana (Mazri) forests are found in Pakistan, Afghanistan, Iran, and Oman. These forests are ecologically and economically important to local communities and exhibit complex spatial distributions. This research examines the distribution of Mazri forests and their responses to varying phosphorus levels across different climatic zones. We collected data from 508 plots in the Khyber Pakhtunkhwa region of Pakistan, gathering 500 g of soil from each plot for phosphorus analysis, along with measurements of abundance and various traits. A distribution map was constructed to assess the impact of phosphorus levels on Mazri forest distribution and traits across climatic zones. Using a PCA biplot, we visualized the abundance and density and studied the effects of different climatic and environmental factors. Our findings suggest that phosphorus levels do not significantly influence the distribution of Mazri forests, which vary across different climatic regions. Forests are stable in the eastern wet mountain zone (EWMZ) and northern dry mountain zone (NDMZ), although without a significant pattern. A weak positive correlation was observed in the western dry mountain zone (WDMZ). In contrast, the Sulaiman piedmont zone (SPMZ) presented minor variations in abundance, indicating that phosphorus, in conjunction with other edaphic and climatic factors, affects Mazri forest distribution and abundance. Further research is needed to investigate the combined effects of various soil nutrients and climatic factors on the distribution, abundance, and functional traits of Mazri forests across different regions.