The hemicellulose 4-O-methyl glucuronoxylan is one of the principle components present in the secondary cell walls of eudicotyledonous plants. However, the biochemical mechanisms leading to the formation of this polysaccharide and the effects of modulating its structure on the physical properties of the cell wall are poorly understood. We have identified and functionally characterized an Arabidopsis glucuronoxylan methyltransferase (GXMT) that catalyzes 4-O-methylation of the glucuronic acid substituents of this polysaccharide. AtGXMT1, which was previously classified as a domain of unknown function (DUF) 579 protein, specifically transfers the methyl group from S-adenosyl-L-methionine to O-4 of α-D-glucopyranosyluronic acid residues that are linked to O-2 of the xylan backbone. Biochemical characterization of the recombinant enzyme indicates that GXMT1 is localized in the Golgi apparatus and requires Co(2+) for optimal activity in vitro. Plants lacking GXMT1 synthesize glucuronoxylan in which the degree of 4-O-methylation is reduced by 75%. This result is correlated to a change in lignin monomer composition and an increase in glucuronoxylan release during hydrothermal treatment of secondary cell walls. We propose that the DUF579 proteins constitute a previously undescribed family of cation-dependent, polysaccharide-specific O-methyl-transferases. This knowledge provides new opportunities to selectively manipulate polysaccharide O-methylation and extends the portfolio of structural targets that can be modified either alone or in combination to modulate biopolymer interactions in the plant cell wall.