The nucleotide sequence on both sides of the eryA polyketide synthase genes of the erythromycin-producing bacterium Saccharopolyspora erythraea reveals the presence of ten genes that are involved in L-mycarose (eryB) and D-desosamine (eryC) biosynthesis or attachment. Mutant strains carrying targeted lesions in eight of these genes indicate that three (eryBIV, eryBV and eryBVI) act in L-mycarose biosynthesis or attachment, while the other five (eryCII, eryCIII, eryCIV, eryCV and eryCVI) are devoted to D-desosamine biosynthesis or attachment. The remaining two genes (eryBII and eryBVII) appear to function in L-mycarose biosynthesis based on computer analysis and earlier genetic data. Three of these genes, eryBII, eryCIII and eryCII, lie between the eryAIII and eryG genes on one side of the polyketide synthase genes, while the remaining seven, eryBIV, eryBV, eryCVI, eryBVI, eryCIV, eryCV and eryBVII lie upstream of the eryAI gene on the other side of the gene cluster. The deduced products of these genes show similarities to: aldohexose 4-ketoreductases (eryBIV), aldoketo reductases (eryBII), aldohexose 5-epimerases (eryBVII), the dnmT gene of the daunomycin biosynthetic pathway of Streptomyces peucetius (eryBVI), glycosyltransferases (eryBV and eryCIII), the AscC 3,4-dehydratase from the ascarylose biosynthetic pathway of Yersinia pseudotuberculosis (eryCIV), and mammalian N-methyltransferases (eryCVI). The eryCII gene resembles a cytochrome P450, but lacks the conserved cysteine residue responsible for coordination of the haem iron, while the eryCV gene displays no meaningful similarity to other known sequences. From the predicted function of these and other known eryB and eryC genes, pathways for the biosynthesis of L-mycarose and D-desosamine have been deduced.