Encryption converts readable data into an unreadable form so attackers cannot read it. Only authorized users with the decryption key can access the original data.
Example:
HTTPS encrypts the data between your browser and a website, so anyone intercepting it cannot read your login credentials.