Definitions of obscenity
a very offensive word
He shouted obscenities at passers-by.
the fact of being obscene (=offensive or shocking, especially because it is related to, describes, or shows sex)
He was prosecuted for obscenity after sending women photographs of himself naked.