It is not spite. Knocking objects is a mix of attention, hunting drive, and the simple joy of cause and effect. Here is what is really going on.

Attention is the reward

If a knock earns a reaction — even “no!” — the cat learns the move works. The most effective fix is to stop reacting and reward the moments they leave items alone.

It scratches an itch to hunt

Small, movable objects trigger the same paw-swipe as prey. Redirect with a scheduled play session using a wand toy before the counter becomes the playground.

Make the surface boring

Clear tempting edges, add double-sided tape to the table lip, and give a approved high perch nearby. A cat with a better vantage point ignores your mug.

FAQ

Common questions

Is it ever a health sign?
Sudden new knocking with other changes (meowing, vomiting) can mean stress or illness — check with a vet if it appears overnight.
Will yelling help?
No. Any reaction is attention. Walk away silently and reward calm behavior instead.