Foam injection can be used to change the wettability of the reservoir rock, especially in reservoirs with a high degree of heterogeneity where gas injection is associated with problems. Foam can help the production of residual oil in the matrix by reducing the surface tension, changing the wettability of the rock and directing the surfactant solution towards the matrix. Based on the main goal of foam injection and the characteristics of the reservoir fluid and rock, it is necessary to design its structure and type. Among the other important mechanisms that have a great effect on the increase of oil recovery using foam, it is possible to change the wettability of the reservoir rock. Foam injection in carbonate reservoirs to change reservoir rock wettability is one of the effective methods to increase oil recovery. In this regard, the use of additives such as nanoparticles in order to improve the quality and stability of the foam can lead to positive effects of the properties of reservoir rocks and fluids.