A foam acid system was developed by optimizing the foaming agent and the foam stabilizer,and its performance was evaluated.The selected HQ-03 has strong foaming and stabilizing abilities,with a half-life of about 800 seconds at a concentration of 1%.The mineralization resistance reaches 40000 mg/L,and the temperature resistance reaches 90℃after adding a stabilizer.The parallel experiment of oil-bearing and water bearing cores with different permeability levels shows that the developed foam acid system is selective for high and low permeability cores,and has good temporary plugging and diversion effect.The foam acid system is more suitable for heterogeneous formations.