Amitriptyline is in a group of drugs called tricyclic antidepressants. It affects chemicals in the brain that may become unbalanced.