Spite is to intentionally annoy, hurt, or upset. Spiteful words or actions are delivered in such a way in which it's clear that the person is delivering them just to annoy, hurt, or upset.  When the intent to annoy, hurt, or upset is shown subtly, behavior is considered catty.
The infamous Underground Man, of Fyodor Dostoevsky's well known novella Notes from Underground, is a widely known and highly influential example of spite at its utmost. The Underground Man's motivations for his actions remain constantly spiteful, seemingly only for the sake of spite, and in this way his subversion undercuts his own existence and ability to live in a way he might possibly want.