We live in a time where technology advances extremely fast in all areas. CNC machines were intended for industry only a few years ago. Recently, they have become very popular among "amateurs", as components in their control programs have become affordable even to individuals. Despite the fact that it is possible to buy a wide range of CNC machine tools on the market, careful planning can be cheaper in the case of self-construction. This work describes the design in the construction of a CNC machine in a do-it-yourself manner. Initially, theoretical basics for designing and selecting machine components are presented. The following is the configuration of the machine in the computer program and the production of G-code for cutting on the machine. It should be borne in mind that the quality of the machine depends on the accuracy of the tools we have available and from the financial input for the construction of the machine.