With a 3-axis CNC machine, the spindle moves up and down, side to side, back and forth. 5-axis machines, in addition to this 3-axis movement, have two further axes in play: the table rocks side to side on two different axes, or the spindle swivels on two axes.
