Ill will or malicious intent toward someone; often used in phrases like 'no ill intent' (悪気はない).
君にそんなことを言ったのは悪気があったわけではない。
I didn't say that to you with any ill intent.
彼の行動に悪気は見られなかったが、結果的に迷惑をかけた。
There was no sign of malice in his actions, but they ended up causing trouble.
冗談のつもりでも、相手に悪気があると受け取られることがある。
Even as a joke, it can be taken as malice by the other person.