# Demethylation

Demethylation is the chemical process resulting in the removal of a methyl group (CH$_3$) from a molecule. A common way of demethylation is the replacement of a methyl group by a hydrogen atom, resulting in a net loss of one carbon and two hydrogen atoms.
The counterpart of demethylation is methylation.

## In biochemistry

    Dicamba, a widely used herbicide, biodegrades by demethylation to give 3,6-dichlorosalicylic acid, catalyzed by a dioxygenase enzyme.
Demethylation is relevant to epigenetics. Demethylation of DNA is catalyzed by demethylases. These enzymes oxidize N-methyl groups, which occur in histones, in lysine derivatives, and in some forms of DNA.
    R$_2$N-CH$_3$ + O → R$_2$N-H + CH$_2$O
One family of such oxidative enzymes is the cytochrome P450. Alpha-ketoglutarate-dependent hydroxylases are also active for demethylation of DNA, operating by a similar stoichiometry. These reactions, which proceed via hydroxylation, exploit the slightly weakened C-H bonds of methylamines and methyl ethers.
Demethylation of some sterols are steps in the biosynthesis of testosterone and cholesterol. Methyl groups are lost as formate.

## Biomass processing

Methoxy groups heavily decorate the biopolymer lignin. Much interest has been shown in converting this abundant form of biomass into useful chemicals (aside from fuel). One step in such processing is demethylation. The demethylation of vanillin, a derivative of lignin, requires 250 °C (482 °F) and strong base. Pulp and paper industry digests lignin using aqueous sodium sulfide, which partially depolymerizes the lignin. Delignification is accompanied by extensive O-demethylation, yielding methanethiol, which is emitted by paper mills.

## In organic chemistry

Demethylation often refers to cleavage of ethers, especially aryl ethers.
Historically, aryl methyl ethers, including natural products such as codeine (O-methylmorphine), have been demethylated by heating the substance in molten pyridine hydrochloride (melting point 144 °C (291 °F)) at 180 to 220 °C (356 to 428 °F), sometimes with excess hydrogen chloride, in a process known as the Zeisel–Prey ether cleavage. Quantitative analysis for aromatic methyl ethers can be performed by argentometric determination of the N-methylpyridinium chloride formed. The mechanism of this reaction starts with proton transfer from pyridinium ion to the aryl methyl ether, a highly unfavorable step (K < 10$^{−11}$) that accounts for the harsh conditions required, given the much weaker acidity of pyridinium (pK$_a$ = 5.2) compared to the protonated aryl methyl ether (an arylmethyloxonium ion, pK$_a$ = –6.7 for aryl = Ph). This is followed by S$_N$2 attack of the arylmethyloxonium ion at the methyl group by either pyridine or chloride ion (depending on the substrate) to give the free phenol and, ultimately, N-methylpyridinium chloride, either directly or by subsequent methyl transfer from methyl chloride to pyridine.
Another classical (but, again, harsh) method for the removal of the methyl group of an aryl methyl ether is to heat the ether in a solution of hydrogen bromide or hydrogen iodide sometimes also with acetic acid. The cleavage of ethers by hydrobromic or hydroiodic acid proceeds by protonation of the ether, followed by displacement by bromide or iodide. A slightly milder set of conditions uses cyclohexyl iodide (CyI, 10.0 equiv) in N,N-dimethylformamide to generate a small amount of hydrogen iodide in situ.
Boron tribromide, which can be used at room temperature or below, is a more specialized reagent for the demethylation of aryl methyl ethers. The mechanism of ether dealkylation proceeds via the initial reversible formation of a Lewis acid-base adduct between the strongly Lewis acidic BBr$_3$ and the Lewis basic ether. This Lewis adduct can reversibly dissociate to give a dibromoboryl oxonium cation and Br$^–$. Rupture of the ether linkage occurs through the subsequent nucleophilic attack on the oxonium species by Br$^–$ to yield an aryloxydibromoborane and methyl bromide. Upon completion of the reaction, the phenol is liberated along with boric acid (H$_3$BO$_3$) and hydrobromic acid (aq. HBr) upon hydrolysis of the dibromoborane derivative during aqueous workup.
Stronger nucleophiles such as diorganophosphides (LiPPh$_2$) also cleave aryl ethers, sometimes under mild conditions. Other strong nucleophiles that have been employed include thiolate salts like EtSNa.
Aromatic methyl ethers, particularly those with an adjacent carbonyl group, can be regioselectively demethylated using magnesium iodide etherate. An example of this being used is in the synthesis of the natural product Calphostin A, as seen below.
Methyl esters also are susceptible to demethylation, which is usually achieved by saponification. Highly specialized demethylations are abundant, such as the Krapcho decarboxylation:
A mixture of anethole, KOH, and alcohol was heated in an autoclave. Although the product of this reaction was the expected anol, a highly reactive dimerization product in the mother liquors called dianol was also discovered by Charles Dodds.

### N-demethylation

N-demethylation of 3° amines is by the von Braun reaction, which uses BrCN as the reagent to give the corresponding nor- derivatives. A modern variation of the von Braun reaction was developed, where BrCN was superseded by ethyl chloroformate. The preparation of Paxil from arecoline is an application of this reaction, as well as the synthesis of GSK-372,475, for example.
The N-demethylation of imipramine gives desipramine.