Torrents themselves are perfectly legal. A torrent is just a small file that helps a BitTorrent client connect to a tracker and find peers to download from. The BitTorrent protocol is a legitimate, efficient way to distribute large files without overloading a single server—it's used to share things like Linux distributions, OpenOffice, and public-domain music and video.
What's illegal is using torrents to download copyrighted material without permission. So the technology is fine; it's how you use it that matters.