Depression or anxiety may occur with fibromyalgia due to ongoing pain and fatigue, frustration with the condition, or a chemical imbalance in the brain.