Ignoring a cat after they do something you don’t like, such as biting or clawing is a very effective way of getting a cat to stop this behavior. If you are petting your cat and they bite or scratch you, get up and walk away, and do not give your cat any attention for the next 20 to 30 minutes.