BitTorrent itself is a legal file-sharing technology. What matters is the content being shared. Downloading copyrighted material without permission is usually illegal, while sharing public-domain or authorized files can be lawful.