anatomy of evil

What makes ordinary people commit extraordinarily violent acts? Is it their brain chemistry? Social pressure? Or a charismatic leader telling them it's their patriotic duty?