The oxytocinergic system is crucial for sociality and well-being and is associated with empathy. It is suggested that the oxytocinergic system exerts context- and person-dependent effects. We examined how sexual sadistic contexts influenced the effects of the oxytocinergic system on empathic-related behaviors and brain activity in healthy adults. Combining genetic neuroimaging, pharmacological techniques and a psychological paradigm of empathy, we recorded EEG neural responses in female OXTR rs53756 G/G and A/A carriers and measured subjective empathic ratings after intranasal administration of oxytocin/placebo in healthy male adults during the perception of painful facial expressions in sadistic/general social contexts. The results revealed that sadistic contexts modulate oxytocinergic effects on empathy at both behavioral and neural levels. The oxytocinergic system preferentially modulated empathic responses to sadistic contexts. These effects are moderated by individual's trait empathy. Our combined genetic-pharmacological-imaging results provide a neurochemical mechanism for sadistic context-dependent effects of the oxytocinergic system on empathy.