Organisms continuously modify their environment, often impacting the fitness of future conspecifics due to ecological inheritance. When this inheritance is biased toward kin, selection favors modifications that increase the fitness of downstream individuals. How such selection shapes trait variation within populations remains poorly understood. Using mathematical modelling, we investigate the coevolution of multiple traits in a group-structured population when these traits affect the group environment, which is then bequeathed to future generations. We examine when such coevolution favors polymorphism as well as the resulting associations among traits. We find in particular that two traits become associated when one trait affects the environment while the other influences the likelihood that future kin experience this environment. To illustrate this, we model the coevolution of (a) the attack rate on a local renewable resource, which deteriorates environmental conditions, with (b) dispersal between groups, which reduces the likelihood that kin suffers from such deterioration. We show this often leads to the emergence of two highly differentiated morphs: one that readily disperses and depletes local resources, and another that maintains these resources and tends to remain philopatric. More broadly, we suggest that ecological inheritance can contribute to phenotypic diversity and lead to complex polymorphism.