Aiming at the problems of low permeability,development of fractures,bottom water coning and poor selectivity of plugging agent in buried-hill reservoirs with bottom water,the feasibility of nitrogen foam controlling the water coning and enhancing the oil recovery was evaluated. Based on the optimization of foaming agent,the three-dimensional bottom water model,which was designed and produced according to geological data,was used to simulate the process of nitrogen foam huff and puff in horizontal well under the action of bottom water. Meanwhile,the effect of nitrogen foam controlling the water coning and enhancing the oil recovery and the impact of fracture and injection pressure were investigated. Experimental results show that in the fracture-free low permeability matrix model,the optimal nitrogen foam that is used for huff and puff can make water cut decrease by 78.49% and oil recovery increase by 6.85%. It shows that the nitrogen foam has a significant effect on controlling the water and enhancing the oil recovery,which demonstrates that the injection of nitrogen foam increases the formation energy and plays the role of inhibiting the bottom water coning. In the case of matrix-fracture model,the water cut can be reduced by more than 17%,and the oil recovery can be increased by about 2%. The existence of fractures directly affects the increase of oil recovery. The results show that the flow control ability of nitrogen foam is limited in the presence of fractures. Increasing the injection pressure can further supplement the nitrogen foam energy so as to ensure the effect of controlling the water coning and enhancing the oil recovery. In addition,high strength starch gel was used to seal the fractures,which can make oil recovery of nitrogen foam huff and puff further increase by nearly 2 percent.