When insomnia is related to a known medical or psychiatric condition, then appropriate treatment of that condition is in the forefront of therapy for insomnia in addition to the specific therapy for insomnia itself. Without adequately addressing the underlying cause, insomnia will likely go on despite taking aggressive measures to treat it with both medical and non-medical therapies.