Pulling dead plants thatcarry pests or diseaseswhich, unfortunately,applies to many cropsis key to preventing future problems.

Read on to learn which plants you should pull and which ones you might leave standing.

So, they will likely taste disappointing.

Tomato plant at the end of the season

Mónica Cotes / Getty Images

Want more gardening tips?

Which Dead Plants Actually Enrich Soil?

Just dig them under to speed up the decomposition.

Plant pulled out of soil with exposed roots to be transplanted

The Spruce / Pheobe Cheong

The best plants, however, to benefit your garden soil are cover crops,also called green manure.

Clemson University Cooperative Extension.

University of Maryland Extension.

Leafy green and purple vegetables in garden

The Spruce / Jayme Burrows

How to Create Stem Habitat for Stem-Nesting Bees.

American goldfinch on sunflower

American goldfinch on sunflowerJen Tepp / Getty Images