One way to increase oil production was to inject various water-based fluids to move oil into the reservoirs, which in some cases used surfactants to produce oil trapped in the water-based fluid, but later found that thess materials can change the wettability of the rock surface to the desired, so various mechanisms have been introduced for them. In this study, using CAPB, CTAB SDS and Triton X-100s surfactants, wettability tests (contact angle), interprocess tension, zeta potential between different procedures, video experiments for Marangoni flow and intrusive vampire tried to explain the primary production mechanism. They are dealt with different reactants. The results showed that the cationic surfactant CTAB, due to its positive ionic charge and the presence of electrostatic forces, approaches the fatty acid groups attached to the rock surface with a negative ionic charge and forms a complex of cationic-anionic ion pairs with them. General condition Compared to cationic surfactants, the performance of anionic surfactants on the change in wettability of carbonate rocks is inferior. This is due to the homonymous electric charge of the oil groups adhering to the rock surface and the anionic surfactants of SDS.