The three main functions of a firewall include blocking unwanted traffic, permitting safe communication, and providing a robust defence against various cyber threats. Essentially, it serves as a barrier between an internal network and incoming traffic from external sources (such as the internet), ensuring that all communication aligns with established security rules.