In this study, Evernia prunastri, a lichen growing in its natural habitat in Morocco was analysed for the concentration of five heavy metals (Fe, Pb, Zn, Cu and Cr) from eleven sites between Kenitra and Mohammedia cities. The control site was Dar Essalam, an isolated area with low traffic density and dense vegetation. In the investigated areas, the concentration of heavy metals was correlated with vehicular traffic, industrial activity and urbanization. The total metal concentration was highest in Sidi Yahya, followed by Mohammedia and Bouznika. The coefficient of variation was higher for Pb and lower for Cu, Zn and Fe. The concentrations of most heavy metals in the thalli differed significantly between sites (p<0.01). Principal component analysis (PCA) revealed a significant correlation between heavy metal accumulation and atmospheric purity index. This study demonstrated also that the factors most strongly affecting the lichen flora were traffic density, the petroleum industry and paper factories in these areas. Overall, these results suggest that the index of atmospheric purity and assessment of heavy metals in lichen thalli are good indicators of the air quality at the studied sites.