Coal Wikipedia
The conversion of dead vegetation into coal is called coalification. At various times in the geologic past, the Earth had dense forests in lowlying 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.