Antivirus is security software designed to detect, prevent, and remove malware from computer systems. It works by scanning files, memory, and system activity to identify malicious behavior using signature-based detection, heuristic analysis, and real-time monitoring, helping to protect systems from viruses and other types of malware.