The sudden shaking of the body while sleeping is considered to be related to physiological factors such as overwork and mental stress, as well as hypocalcemia, hypomagnesemia, epilepsy and so on. 1. Physiological factors: overwork during the day, recent mental stress, cold during sleep, etc. can cause sudden shaking of the body while sleeping in some people. 2. Hypocalcemia: There are many causes of hypocalcemia, such as hypoparathyroidism and vitamin D deficiency. Some of the patients may be asymptomatic, but some of them may have neuromuscular spasmodic twitching, abnormal sensation, dry skin, etc., which may be manifested as a sudden shaking of the body while sleeping. 3. Hypomagnesemia: mainly related to insufficient magnesium intake, excessive loss in the digestive tract and other factors. Patients are prone to loss of appetite, nausea and vomiting, memory loss, hand and foot twitching, muscle tremor, tachycardia, weakness, etc., which can also be manifested as a sudden shaking of the body while sleeping. 4. Epilepsy: Epilepsy can cause some patients to have sudden shaking of the body while sleeping, and some patients are also prone to other symptoms such as crooked mouth, abnormal sensation and ankylosis. The cause of epilepsy is still unclear, and may be related to genetic, cortical developmental disorders and other factors. It is recommended that people with sudden body shaking while sleeping actively investigate physiological factors and seek medical attention if necessary.