If a dog becomes aggressive, it's important to stay calm and to avoid escalating the situation. You should never punish an aggressive dog, as this can lead to further aggression. Instead, try to remove the dog from the situation and contact the owner for further guidance.