Ransomware is a type of malicious software designed to block access to a computer system or data until a sum of money is paid. It is often spread through phishing emails or by visiting infected websites. Once activated, it encrypts the files on the infected system, making them inaccessible to the user.