When we move into ocean we well encounter the three thermal layers.
The temperature varies with the depth because the temperature structure of oceans over middle and low latitudes can be described as a three layer system. The first layer it is about 500m thick with the temperature 20° to 25° C.
Second layer is below the first layer and temperature decreases rapidly with increasing depth, third layer is very cold and extends upto the deep ocean floor.