An antivirus program is a software designed to detect, prevent, and remove malicious software (malware) such as viruses, worms, trojans, and spyware from a computer system.
On the other hand, a firewall program monitors incoming and outgoing network traffic, blocking suspicious activity to protect a computer system from unauthorized access.