Highlights• Root traits predict afterlife effects of roots on soil organic carbon dynamics• Root litters high in soluble carbon and nitrogen promote stable soil carbon formation• Formation of soil carbon was more efficient from ectomycorrhizal roots early in decay• Early stages of root decay are important for the formation and loss of stable soil carbon