Certain additives used in drilling fluids can alter the wettability of rock cores. Surfactants in invert emulsion muds are known to change core wettability. Standard cleaning does not remove these surfactants, leading to incorrect data from tests on residual wettability. New cleaning methods must remove surfactants to restore cores' natural wettability. Once cleaned, cores' wettability can be set by saturating with formation brine and crude, then aging at reservoir temperature.