Doxepin is a tricyclic antidepressant. Desmethyldoxepin is the primary metabolite of doxepin, produced by metabolism at the liver. The metabolism of tricyclic antidepressants, including doxepin, is affected by a variety of factors, including age, genetics, and drug-drug interactions.