Disclosed is a therapeutic agent or prophylactic agent that has analgesic effects on both nociceptive pain and neuropathic pain and is effective in the treatment of fibromyalgia. Specifically disclosed is a therapeutic agent or prophylactic agent for fibromyalgia that includes, as an active component, a cyclohexane derivative represented by the formula, or a pharmaceutically acceptable salt or prodrug thereof.