What is the black gooey substance that formed some fossils?
Tar
The tree log was fossilized through this process.
Mineralization/petrification