tan someone's hide

Etymology
By metaphor from tannery: beating hides (to condition them), tanning them (with dyes and chemicals), and so on.

Verb

 * 1)  To beat or spank someone.