An Intrusion Detection System (IDS) monitors network or system activities for malicious activities or policy violations. IDSs analyze traffic patterns, log data, and other indicators to detect potential security incidents. They can operate in real-time and provide alerts for immediate response.