Imipramine is a tricyclic antidepressant (TCA) primarily used to treat major depressive disorder and enuresis (bedwetting) in children. It works by inhibiting the reuptake of neurotransmitters such as norepinephrine and serotonin, thereby increasing their availability in the synaptic cleft.