Viruses are malicious programs that infect computers and mobile devices without the owner's consent. They replicate by inserting copies of themselves into other executable code or documents. Once activated, a virus can delete files, corrupt data, use network resources, or display unwanted pop-ups on a device.