A three-layer model of the thermohaline structure is developed on the basis of the two-layer model of thermocline.The model is able to simulate the depth,thickness and intensity of both thermocline and halocline, and the temperature and salinity of both upper layer and lower layer in the shallow seas. Camparison of simulation with data is favorable. Detailed analysis is made on a variety of factors affecting the intensity of the thermocline.