Aiming at the scattering and absorption of light in the water body, which causes the problems of color shift, uneven brightness, poor sharpness and missing details in the acquired underwater images, an underwater image enhancement algorithm based on IMSRCR and CLAHE-WGIF is proposed. Firstly, the IMSRCR algorithm proposed in this paper is used to process the original underwater image with adaptive color shift correction; secondly, the image is converted to HSV color space, and the segmentation exponential algorithm is used to process the S component to enhance the image saturation; finally, multi-scale Retinex is used to decompose the V component image into detail layer and base layer, and adaptive two-dimensional gamma correction is made to the base layer to adjust the brightness unevenness, while the detail layer is processed by CLAHE-WGIF algo-rithm to enhance the image contrast and detail information. The experimental results show that our algorithm has some advantages over existing algorithms in both subjective and objective evaluations, and the information entropy of the image is improved by 6.3% on average, and the UIQM and UCIQE indexes are improved by 12.9% and 20.3% on average.