Kungfu and School Bullying

Recent studies show that the practice of martial arts among children and young people is associated with a reduction in the incidence of school bullying. But, how is it possible that the teaching of a martial art which, at first glance, seems related to violence can in fact reduce it and help prevent bullying in schools?