Millions of years of pressure with heat force oxygen out of plant and animal matter to result in rich carbon deposits of coal.