Ransomware is malicious software (malware) designed to prevent you from accessing your own data. This is usually done through encryption or other file locking methods. The data is thus taken hostage in exchange for a ransom – hence the name.

source