To reduce the size of a set of data, such as a file or a communications message, so that it can be stored in less space or transmitted with less bandwidth.