Phenelzine is a non-selective and irreversible inhibitor of the enzyme monoamine oxidase (MAO). It inhibits both of the respective isoforms of MAO, MAO-A and MAO-B, and does so almost equally, with slight preference for the former. By inhibiting MAO, phenelzine prevents the breakdown of the monoamine neurotransmitters serotonin, melatonin, norepinephrine, epinephrine, and dopamine, as well as the trace amine neuromodulators such as phenethylamine, tyramine, octopamine, and tryptamine. This leads to an increase in the extracellular concentrations of these neurochemicals and therefore an alteration in neurochemistry and neurotransmission. This action is thought to be the primary mediator in phenelzine's therapeutic benefits.