Isocarboxazid is a monoamine oxidase inhibitor (MAOI) used primarily to treat major depressive disorder, particularly in patients who have not responded to other antidepressant treatments. It works by increasing the levels of certain chemicals in the brain that help elevate mood.