BitTorrent is a peer-to-peer file sharing protocol designed to distribute large files widely without incurring high costs for servers or bandwidth. It works by breaking files into pieces that are shared among users (peers) in the network, where each peer uploads pieces to others while downloading different missing pieces. A metadata file called a torrent file contains information about the pieces to download. Peers connect to each other via a tracker server to establish connections for sharing pieces. Once a peer has all the pieces, it becomes a seed continuing to provide the full file to others.