The term sadism refers to taking pleasure from inflicting pain on others.
Sexual sadism is classified in DSM-V and ICD-10 as a sexual disorder, and is described as using sexual fantasies, urges, or behaviours involving infliction of pain, suffering or humiliation to achieve sexual excitement.
See: ICD-10