Ransomware is a type of malicious software that encrypts data on an infected computer and demands payment in exchange for the decryption key. It typically spreads through phishing emails or exploiting vulnerabilities in outdated software. Once it has taken control, it will display a message demanding payment to restore access to the encrypted files.