Wild pigs are often listed as ecosystem destroyers, but a University of Queensland study has found they also cultivate biodiverse rainforests in their native habitats.

The researchers tagged more than 30,000 tree seedlings in a Malaysian rainforest and examined how tree diversity changed in the areas where pigs nested. 

Dr Matthew Luskin says their nests may be critical to maintaining diverse and balanced tree communities.