Introduction: This study focuses on the central mountain region of the Peruvian Andes, particularly its western slopes, high-altitude areas, and inter-Andean valleys situated above 3000 m.a.s.l. Despite its ecological importance, the region remains understudied, resulting in significant information gaps. Objective: To identify flora species along an altitudinal gradient in the Cajatambo district. Methods: Sampling was carried out at five distinct altitudinal levels using a combination of sampling techniques. Taxonomic identification was performed, and statistical analyses including ANOVA, the Mantel test, and NMDS were applied. Results: 424 plant species were identified, revealing the dominance of Asteraceae. The approach used allowed for the identification of floristic and structural patterns in various habitats, ranging from arid montane scrub to puna grassland. Surprisingly, Asteraceae richness had a significant impact on species diversity, while altitude did not. Additionally, floristic similarity between nearby altitudinal levels was not related to geographical distance. The analysis of ecosystems has shown that certain families are adaptable. Additionally, floristic diversity has been affected by human activity near the district capital. The distribution of medicinal species has been limited due to selective extraction. Conclusions: The shrubland and thorny scrub was the most diverse ecosystem and had the widest distribution across the altitudinal gradient.