Proteins transiting the secretory pathway are posttranslationally modified by addition of oligosaccharides to asparagine N-linked and serine and threonine O-linked residues. The effects of divalent cation depletion on oligosaccharide processing of erythropoietin (EPO) and macrophage colony stimulating factor (M-CSF) were studied in Chinese hamster ovary cells. Treatment with A23187 did not inhibit M-CSF or EPO secretion but did inhibit addition of complex N-linked and O-linked oligosaccharides to both molecules. Similar results were obtained by treatment with thapsigargin, a potent inhibitor of the Ca(2+)-activated microsomal ATPase, indicating that the effect was due to depletion of divalent cations within the secretory pathway. Whereas addition of extracellular calcium chloride did not reverse the inhibition in complex N-linked and O-linked glycosylation, addition of manganese chloride partially reversed both defects. These results are consistent with a specific manganese requirement within the secretory pathway for the processing of complex N-linked oligosaccharides and the addition of O-linked oligosaccharides. Since there are no known specific inhibitors of O-linked glycosylation, the use of ionophores should significantly facilitate studies on the requirement and role of O-linked oligosaccharides in protein structure and function.