There is a growing body of knowledge that ecosystem functions, in particular soil-based ecosystem functions, are related to biodiversity. However, how plant species diversity influences soil-based functions along post-agricultural secondary succession is still a largely ignored question in Mediterranean semi-arid conditions. Therefore, we used the plant functional group approach to investigate the relationships between plant species diversity indices and soil-based functions including microbial biomass carbon (MBC), basal respiration (BR) and carbon sequestration (CS) across three different stages of the vegetation succession corresponding to ~ five years after agricultural abandonment, ~ 15 years after abandonment, and oak forests which represent the terminal stage. We also tested if these relationships are supported by the niche complementarity and selection effect hypotheses. The results showed that soil-based functions significantly increased with time since abandonment as BR, MBC and CS increased respectively by 1.7, 1.5 and 2.7 times across the three successional stages. We also found strong correlations between the diversity indices and the soil-based functions BR, MBC and CS which were positive for richness (R 2 values: 0.75, 0.74 and 0.75) and Shannon diversity (R 2 values: 0.61, 0.58 and 0.61) but negative for evenness (R 2 values: 0.38, 0.38 and 0.36 for, respectively). Similarly, richness and Shannon diversity of the different plant functional groups positively correlated with soil-based functions. However, contrasted results were found for evenness which positively correlated with soil-based functions for perennial grass only. We suggested that increasing the diversity of plant species and facilitating dominant species would be needed to improve the soil-based ecosystem functions after abandonment of degraded soils. This study also revealed that the mechanisms behind the relationships between biodiversity and ecosystems functions were influenced by the vegetative forms. Keywords Carbon sequestration. Cropland abandonment. Land use change. Richness. Semiarid forest Highlights Species diversity and soil-based functions improve along the successional stages after land abandonment The relationships between plant diversity and soil-based functions are influenced by the plant functional groups.. Niche complementarity plays a more vital role in soil-based ecosystem functions than the selection effect.