Torrenting copyrighted material is illegal, but torrenting non-copyrighted or open-source material is legal.