Sleeping with the brain thinking about things all the time may lead to insomnia, which is the most common type of sleep disorder, while the brain thinking about things, not being able to be quiet, and ruminating may be the main manifestation of anxiety disorder, which is the most common cause of difficulty falling asleep. When this situation occurs, treatment is as follows: 1. Patients are advised to visit a neurologist to improve the anxiety self-rating scale as well as the depression self-rating scale; because anxiety and depression are often combined, both should be examined; 2. If the score is above 40, patients need to take medication and carry out targeted treatment: anti-anxiety is generally used in doxepin and buspirone; anti-depression is generally used in escitalopram oxalate and Duloxetine; you can also use drugs that have both anti-anxiety and anti-depressant effects, such as paroxetine, haloperidol, melitrexin, etc.; if the patient still has rumination, you need to consider using several drugs for combined treatment.