When grass, leaves, food waste, manure and woody material are placed of the ground, micro-organisms from the ground begin to eat the material. The breakdown of this material is speed up with assistance from air (oxygen), water, and sunlight. Generally it will take several months for the material to become compost and that will also depend on how often you turn the pile of material.