It's very common for hamsters to bite when they are stressed. They might be feeling irritable, threatened, or unwell. If your hamster has suddenly started biting or behaving aggressively, speak to a veterinarian about the possible causes.