NAT is a technique used by firewalls to hide the internal IP addresses of devices on a network. It provides an added layer of security by mapping multiple internal IP addresses to a single external IP address, making it harder for potential attackers to identify specific targets.