Out of spite

With the desire to harm someone or something.

My friend would not help me out of spite because he is angry at me.