In view of the complex water invasion characteristics of ultra-deep marine carbonate reservoirs，cores with different types of medium，such as matrix，dissolved pores，and natural fractures are selected to carry out gas-water relative permeability experiments. An experimental device with high temperature and high pressure（150 ℃ and 50 MPa）is built，and the experimental process and scheme are designed. The gas-water two-phase relative permeability is measured under different confining pressures（10，30，and 50 MPa）to plot the relative permeability curves，and the variation characteristics of the curves with the confining pressure are analyzed. The results show that the gas-water relative permeability curves generally move downward with the increase in the confining pressure，and the gas-water relative permeability of the natural fracture core decreases more obviously. The isotonic point of the gas-water relative permeability moves in the direction of low water saturation，and the shapes of the relative permeability curves change. Obvious differences are also observed in the width of the two-phase flow zones in the gas-water relative permeability curves of different media. With the increase in the confining pressure，the width of the two-phase flow zone of the core with dissolved pores undergoes the smallest change.The experimental results can be used to explain the water invasion characteristics of ultra-deep carbonate gas fields and the water production phenomenon of gas wells and provide a basis for determining the water invasion law of such gas reservoirs.