Ransomware is a kind of malware that holds your data hostage. When you're attacked by malware, it encrypts all your data. Since you don't have the key, you aren't able to read it. Typically you're asked to make a payment in cryptocurrency in exchange for the key. If you don't pay up by the deadline, the key is discarded and your data is lost for good.