Surfactants with a low HLB dissolve oil. Surfactants with a high HLB dissolve in water.