Data encryption is a security measure used to protect sensitive information by converting it into a coded format, making it unreadable to unauthorized users. This process ensures that only individuals with the correct decryption key can access the original data.