The invention relates to use of the trans-(E) isomer or isomeric mixtures containing specified ratios of the trans-(E) and cis-(Z) isomers of doxepin, metabolites of doxepin, pharmaceutically-acceptable salts of doxepin and prodrugs of the same; compositions containing the same, for the treatment of sleep disorders.