The invention relates to a numerical control machine tool with an automatic scrap iron cleaning function. The machine comprises a main body and a base, and further comprises a cooling mechanism and acleaning mechanism, wherein the cleaning mechanism comprises a driving assembly, a power block, a supporting rod, a first spring, a lifting sleeve, a connecting rod, a scraping plate, a connecting shaft, two moving wheels and two guide assemblies; the cooling mechanism comprises a first guide rail, a first moving assembly, a second guide rail, a second moving assembly and a nozzle. The numerical control machine tool with the automatic scrap iron cleaning function can automatically clean the scrap iron in the base through the cleaning mechanism, so that the cleaning efficiency is improved, theprobability that operators are scratched by the scrap iron is reduced, and the practicability of the numerical control machine tool is improved; the position of the nozzle is adjusted which is realized through the cooling mechanism, so that the nozzle can be always positioned above a workpiece during operation of the numerical control machine tool, and therefore the cooling effect of nozzle on theworkpiece is improved, the practicability of the numerical control machine tool is further improved.