What is Gcode and how does Gcode work?

What is Gcode and how does Gcode work?