Peat forms when plant material, usually in marshy areas, is inhibited from decaying fully by acidic and anaerobic conditions. It is composed mainly of marshland vegetation: trees, grasses, fungi, as well as other types of organic remains, such as insects, and animal remains. Under certain conditions, the decomposition of the latter (in the absence of oxygen) is inhibited.