spite (意地悪さ): She made a nasty comment out of spite. (彼女は意地悪さから意地悪なコメントをしました)

She made a nasty comment out of spite.