Carbon dioxide (CO2) flooding in carbonate reservoirs often suffers from poor sweep efficiency, attributed to unfavorable mobility ratio, gravity segregation, and reservoir heterogeneity. CO2-foam injection is a promising strategy to control CO2 mobility. The stability of CO2-foam is affected by reservoir wettability. This study aims to systematically investigate the effectiveness of CO2-foam flood coupled with wettability alteration in an initially oil-wet carbonate rock at a pressure below the minimum miscibility pressure. Three types of surfactants, including a nonionic surfactant Soloterra 843, a cationic surfactant CETAC-30, and a zwitterionic surfactant LMDO, were evaluated as potential foaming agents. Contact angle tests were conducted to assess the wettability alteration capability of these surfactants. Bulk foam stability tests and foam rheology tests were conducted under reservoir conditions. Finally, foam core flood experiments were performed using oil-wet carbonate core samples. Results from contact angle experiments indicated that only CETAC-30 was effective at altering rock wettability from oil-wet to water-wet by removing the negatively charged organic acid components from the rock surface. Foam stability and rheological tests revealed that LMDO exhibited highly stable CO2-foam in the absence of crude oil. However, the presence of crude oil adversely affected CO2-foam stability for all the surfactants. Core flooding experiments demonstrated that injecting wettability alteration surfactant, CETAC-30, in form of foam could not only alter the wettability of rocks, but also enhance the foam strength. Continuous gas injection (without foam) increased oil recovery by 14.4 % due to the near-miscibility of CO2 and oil. Both CETAC-30 and LMDO surfactants increased the oil recovery by about 35 % after waterflood, but the wettability altering surfactant showed the highest mobility reduction factor (MRF). These findings provide valuable insights into the complex interplay between near-miscibility, wettability alteration and foam strength in carbonate reservoirs, offering a basis for optimizing CO2-foam flooding strategies for enhanced oil recovery and carbon sequestration.