What is Terrorism?

What is terrorism? Is it crime, an act of war or something totally different?