How was Coal Made?

Coal was made by pressure and loss of oxygen and hydrogen. Millions of years ago plants and animals died in swamps. The swamps kept them from decaying and that formed peat. Peat is compressed to form coal.