Duetothespecialcharacteristicsoflightinwater,theinformationoftheredchannelisseriouslyattenuatedincollectedimage.Thiscausesothercolorstodominatetheimage.Thispaperproposesanunderwaterimageenhancementalgorithmbasedonredchannelweightedcompensationandgammacorrectionmodel.Firstly,byanalyzingtheattenuationcharacteristicsofRGBchannels,theintensityandtheedgeinformationofredchannelarecompensatedbyweightingtheattenuationcoefficientratiobetweendifferentchannelstocorrectthechromaticity.Thenthegammacorrectionmodelisemployedtostretchtheintensityrangetoenhancethecontrastwhichmakestheimagelookclearer.Theexperimentalresultsshowthattheproposedalgorithmcancorrectthecolorcasteffectandimprovethecontrastbynearly2timesfortheunderwaterimageswithtoomuchredcomponentattenuation.