Lying down with a thumping heart and not being able to sleep may be caused by diet, medication, disease and other factors, and can be relieved by dietary adjustments, medication and other ways. 1. Dietary factors: If you drink coffee, strong tea and other beverages before going to bed, due to the stimulating effect of caffeine on the nerves, adrenaline, dopamine and other secretion increases, which may lead to a faster heartbeat. Therefore, it is best not to drink coffee, strong tea and other beverages before going to bed. 2. Drug factors: certain drugs may have the side effect of rapid heartbeat, such as the antidepressant drug amitriptyline. These drugs in the period of taking medication, such as rapid heartbeat and other uncomfortable symptoms, it is recommended to consult a doctor in a timely manner, under the guidance of the doctor to adjust the medication. 3. Disease factors: hyperthyroidism, anemia, cardiac neurosis and other diseases can also lead to heart thumping sleeplessness, this situation needs to be treated according to the cause. Such as hyperthyroidism patients need oral methimazole treatment, anemia requires supplemental ferrous sulfate treatment. Methimazole may have allergies, liver function damage and other side effects; ferrous sulfate may have bloating and other digestive discomfort. Excluding physiological factors, lying down with a thumping heart can’t sleep, it is recommended to go to the regular hospital to find out the cause, and according to the doctor’s advice active treatment.