A numerical simulation approach of ventilated cavity considering the compressibility of gases is established in this paper, introducing the gas state equation into the calculation of ventilated supercavitating flow. Based on the comparison of computing results and experimental data, we analyzes the differences between ventilated cavitating flow fields with and without considered the compressibility of gases. The effect of ventilation on the ventilated supercavitating flow field structure is discussed considering the compressibility of gases. The results show that the simulation data of cavity form and resistance, which takes the compressibility of gases into account, accord well with the experimental ones. With the raising of ventilation temperature, the gas fraction in the front cavity and the gas velocity in the cavity increase, and the cavity becomes flat. The resistance becomes lower at high ventilation temperature, but its fluctuation range becomes larger than that at low temperature.