The invention is a CNC machine tool, namely a CNC lathe, that includes a horizontal main spindle. The unfinished parts to be machined are supplied to the machine tool horizontally to the working compartment by a handling device integrated into the CNC control, and are then supplied via the handling device to a chuck that is to the horizontal main spindle. The machine tool according to the invention is particularly well-suited for small machining runs.