What is the meaning of Sadomasochism?

The practices of sadism and masochism collectively, usually in reference to consensual practices within the BDSM community.

Sadism and masochism: the (often sexual) enjoyment by one person of both inflicting and receiving pain.

sadomasochism

Source: wiktionary.org