As a prescription drug used for the medical treatment of depression, Trazodone is approved by the FDA. In addition to depression, this medication can also be used as a treatment for insomnia by a doctor or mental health professional and may also be used to relieve anxiety and panic attacks.