Isocarboxazid increases the levels of certain neurotransmitters in the brain, which helps improve mood and alleviate depressive symptoms. By inhibiting the monoamine oxidase enzyme, it prevents the breakdown of these neurotransmitters, allowing them to remain active for a longer period.