Tianeptine is a medication primarily used to treat depression. It belongs to a class of drugs called tricyclic antidepressants, although its mechanism of action is different from typical tricyclic antidepressants.