This paper proposes a mathematical model of a CNC rotary table driven by a worm gear. The CNC rotary tables are generally utilized as rotary axes of 5-axis machining centres. In this study, a mathematical model which can simulate dynamic behaviours of rotary table is proposed. The model consists of inertia of motor, spur and worm gears, and table. Axial displacement of the worm is also considered into the model. Various motions are measured and simulated to confirm effectiveness of the model. As the results show, the proposed model can simulate step response, rotational fluctuations, and influence of unbalanced mass.