Research shows that plants grown in soil with compost added are better able to withstand attack by detrimental fungi, bacteria and nematodes. This could reduce the need for chemical pesticide use. You can even just pile the stuff up and let it be. This non-managed method can take a very long time to produce usable compost. If you are interested in building your own, our Extension Center has a publication from the University of Florida about the construction of home compost units and one for composting yard wastes.
Leaves are the most common wastes in backyard compost piles.
You can compost grass clippings, but university research recommends that clippings not be removed from the lawn. Their decomposition on the lawn adds nutrients back to the soil. If you decide to use clippings for compost, many advise mixing them with other yard wastes since they compact tightly and reduce airflow, which is not good. Kitchen wastes such as vegetable scraps, coffee grounds, and washed eggshells may also be added. It is best not to use any wastes that contain fats, butter, meat or bone.