The main challenge of the application of nanofluids for enhanced oil recovery (EOR) in oil-wet carbonate reservoirs is maintaining their stability under high-temperature and high-salinity which is normally seen in reservoir conditions. In this work, surface-modified TiO2 nanoparticles were synthesized by N-(2-Aminoethyl)−3-Aminopropyltrimethoxysilane (AEAPTMS) as a coupling agent for surface modification of nanoparticles. Zeta potential and dynamic light scattering analyses were used to evaluate the stability of the prepared nanofluids. Results indicated that nanofluids had high stability in 90 °C and 20 wt% salinity. The influence of nanofluids on wettability alteration of carbonate rocks was studied by measuring the contact angle value. Untreated rock samples were strongly oil-wet, with water advancing and receding contact angles of 165.1° and 166.2°, respectively. After treatment with 3wt% concentration of surface-modified TiO2 nanoparticles, the rock plate wettability changed to a water-wet state, with water advancing and receding contact angles of 37.6° and 48.2°, respectively. Suggested surface-modified TiO2 nanoparticles were more effective in wettability alteration of the rock surfaces compared to the un-modified TiO2 nanoparticles. Furthermore, higher concentration of nanoparticles, higher the ability of the nanoparticles on changing the rock wettability.