This drug, Xanax, is taken to treat disorders like anxiety, depression, or panic attacks. Mostly, depression takes place as an after the cause of anxiety.It is considered one of the safest drugs when taken in adequate amount and as per the advice of the health expert.