Farmland afforestation has been promoted in recent decades and is one of the main strategies included in the UN Decade on Ecosystem Restoration to recover degraded areas. However, the impacts of afforestation on plant diversity and soil quality indicators are still not well-understood in semiarid environments. In this study, we assessed the relationships between plant diversity indicators (abundance, total richness, richness by functional groups, and Shannon diversity) and a large number of variables in 48 afforestation sites in southeast Spain. We considered associated environmental factors, such as geographical, climatic or edaphic variables, age, and land-use history. We compared plant diversity and soil properties following land-use change from cereal cropping to afforestation, which is one of the most common land-use changes in Mediterranean areas. Plant diversity in afforested sites was found to be dependent on previous land use, the proximity of natural vegetation, several soil properties (texture, pH, and total nitrogen), and plantation age. Afforested soils showed higher plant diversity and an improvement in edaphic parameters related to multifunctionality in semiarid ecosystems (i.e., soil organic carbon, nitrogen, and potassium) than arable cropped soils.