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.