He did it out of spite, not because he actually wanted to.
She couldn't help but make spiteful remarks about her ex.
His spiteful actions towards his colleagues eventually got him fired.
Her spiteful behavior towards her classmates made her unpopular.