Bad behaviour in your child requires discipline - not punishment. Although sometimes the discipline may be seen as a form of punishment, discipline is more focused on teaching the child what they have done wrong rather then just making them feel bad about their actions (punishment). Discipline requires sending the child to their room for "time out" for a couple of minutes, or temporarily taking something away from them (a toy or lolly) until they have improved their behaviour, or denying them a treat, i.e. "We won't go to play at the park until you stop...". Discipline also requires you to remove your emotions from the situation as, often, the punishment given is purely our emotional reaction to the situation (yelling at the child or spanking them).