Torrent files are small files that contain metadata about the files being shared, but they do not contain the actual data. When downloading a torrent, the client connects to other peers who are also downloading or uploading the same files. This decentralized approach allows for faster and more efficient downloads.