punish

To hurt someone or to cause trouble for them because they have done wrong things. This may teach them not to do wrong things again.