Histogram equalization is a technique used to improve the contrast in images. It involves stretching out the intensity range of the histogram of an image, which redistributes the pixel intensity values and enhances areas that are too dark or too light, making details more visible.