The conversion of dead vegetation into coal is called . At various times in the geologic past, the Earth had dense forests in low-lying wetland areas. In these wetlands, the process of coalification began when dead plant matter was protected from biodegradation and oxidation, usually by mud or acidic water, and was converted into peat. This trapped the carbon in immense peat bogs that were eventually deeply buried by sediments. Then, over millions of years, the heat and pressure of deep burial caused the loss of water, methane and carbon dioxide and increased in the proportion of carbon. The grade of coal produced depended on the maximum pressure and temperature reached, with lignite (also called "brown coal") produced under relatively mild conditions, and sub-bituminous coal, bituminous coal, or anthracite (also called "hard coal" or "black coal") produced in turn with increasing temperature and pressure.