 About 300 million years ago, mushrooms and other fungi developed this ability, ending the main coal-formation period of earth's history.At various times in the geologic past, the Earth had dense forests in low-lying wetland areas.Due to natural processes such as flooding, these forests were buried underneath soil.