Difference between Galvanic Cells and Electrolytic Cells

The difference between galvanic cells and electrolytic cells are difficult to grasp only due to the confusion of the anode and cathodes. Anodes always oxidise in any redox reaction.
In galvanic cells, a spontaneous chemical reaction converts chemical energy into electrical energy, whereas in an electrolytic cell, electrical energy is converted into chemical energy so as to bring about a chemical reaction.

In both the galvanic and electrolytic cells, oxidation still occurs at the anode and reduction occurs at the cathode.