During the establishment of a bacterial infection, the surface molecules of the host organism are of particular importance, since they mediate the first contact with the pathogen. In Caenorhabditis elegans, mutations in the srf-3 locus confer resistance to infection by Microbacterium nematophilum, and they also prevent biofilm formation by Yersinia pseudotuberculosis, a close relative of the bubonic plague agent Yersinia pestis. We cloned srf-3 and found that it encodes a multitransmembrane hydrophobic protein resembling nucleotide sugar transporters of the Golgi apparatus membrane. srf-3 is exclusively expressed in secretory cells, consistent with its proposed function in cuticle/surface modification. We demonstrate that SRF-3 can function as a nucleotide sugar transporter in heterologous in vitro and in vivo systems. UDP-galactose and UDP-N-acetylglucosamine are substrates for SRF-3. We propose that the inability of Yersinia biofilms and M. nematophilum to adhere to the nematode cuticle is due to an altered glycoconjugate surface composition of the srf-3 mutant.