A spanking machine comprising, fixed to a support, a shaft and a torsion spring, a tensioning hook and an electric gear motor, being the lower end of the spring integrally fixed to the support, whereas the upper end, which extends slightly partially protruding from the ensemble, is situated at the level of a tensioning hook wherein the hook rotates integrally with the shaft being provided with a mechanism for, in each turn of the shaft, moving the upper end so as to load the spring, adjusting the force accumulated in the spring and releasing the spring and wherein the upper end of the spring is provided with a fastener for fixing to it the spanking instrument, and the support for allowing the fixation of the machine to a surface.