Sadism () and masochism (), known collectively as sadomasochism ( SAY-doh-MASS-ə-kiz-əm) or S&M, is the derivation of pleasure from acts of respectively inflicting or receiving pain or humiliation. The term is named after the Marquis de Sade, a French author known for his violent and libertine works and lifestyle, and Leopold von Sacher-Masoch, an Austrian author who described masochistic tendencies in his works. Though sadomasochistic behaviours and desires do not necessarily need to be linked to sex, sadomasochism is also a definitive feature of consensual BDSM relationships. .
https://en.wikipedia.org/wiki/Sadomasochism