Character motivation is the reason behind a character's behavior or actions. Therefore, if the audience can understand why a protagonist chooses to do bad things, then they're much more inclined to side with them.