SPANKING MACHINE, comprising, fixed to a support (4), a shaft (2) and a torsion spring (3), a tensioning hook (5) and an electric gear motor (6), being the lower end (3a) of the spring (3) integrally fixed to the support, whereas the upper end (3b), which extends slightly partially protruding from the ensemble, is situated at the level of said tensioning hook (5) wherein said hook (5) rotates integrally with the shaft (2) being provided with means for, in each turn of the shaft, moving said upper end (3b) so as to load the spring (3), adjusting the force accumulated in the spring and releasing the spring and wherein the upper end (3b) of the spring is provided with fastening means for fixing to it the spanking instrument, and the support (4) of means for allowing the fixation of the machine to a surface.