Minification involves removing the code of unnecessary characters, such as whitespace or comments, to make the file smaller.