Amitriptyline is a medication primarily used as an antidepressant. It belongs to a class of drugs called tricyclic antidepressants (TCAs). However, its use extends beyond treating depression, including applications in pain management and other conditions.