The purpose of composting is to improve the quality of the soil in the garden naturally. Good garden soil is the foundation for a flourishing garden.