The Taming of the Shrew is a comedy by William Shakespeare, believed to have been written between 1590 and 1592. The play begins with a framing device, often referred to as the induction,[a] in which a mischievous nobleman tricks a drunken tinker named Christopher Sly into believing he is actually a nobleman himself. The nobleman then has the play performed for Sly's diversion.
Source: Wikipedia
There is no actual spanking in the play, but in some cases there is nevertheless a spanking included by the director often in Act 2, Scene 1.