Ras can act on the plasma membrane (PM) to mediate extracellular signaling and tumorigenesis. To identify key components controlling Ras PM localization, we performed an unbiased screen to seek Schizosaccharomyces pombe mutants with reduced PM Ras. Five mutants were found with mutations affecting the same gene, S. pombe erf2 (sp-erf2), encoding sp-Erf2, a palmitoyltransferase, with various activities. sp-Erf2 localizes to the trans-Golgi compartment, a process which is mediated by its third transmembrane domain and the Erf4 cofactor. In fission yeast, the human ortholog zDHHC9 rescues the phenotypes of sp-erf2 null cells. In contrast, expressing zDHHC14, another sp-Erf2-like human protein, did not rescue Ras1 mislocalization in these cells. Importantly, ZDHHC9 is widely overexpressed in cancers. Overexpressing ZDHHC9 promotes, while repressing it diminishes, Ras PM localization and transformation of mammalian cells. These data strongly demonstrate that sp-Erf2/zDHHC9 palmitoylates Ras proteins in a highly selective manner in the trans-Golgi compartment to facilitate PM targeting via the trans-Golgi network, a role that is most certainly critical for Ras-driven tumorigenesis.