Suddenly, the back of the head is like a pinprick pain for a day may be caused by a viral infection, or it may be caused by some diseases such as migraine, cerebral infarction and so on. 1. Viral infection: when the occipital nerve is infected by viral infection or bacterial infection, it can cause neuroinflammation, which can be manifested as pins and needles pain in the back of the head, with varying lengths of pain. 2. Migraine: Migraine is a recurring type of headache, which is more common in young and middle-aged people and women. Migraine is genetically susceptible and is often associated with family inheritance. Excessive mental stress, physical activity and strong stimulation are all triggering factors for migraine. The patient manifests as pinprick headache, throbbing headache, which may be accompanied by nausea and vomiting and other symptoms. 3. Herpes zoster: Herpes zoster is an acute infectious skin disease caused by varicella zoster virus. Before the onset of rash, there may be mild fatigue, low fever and other systemic symptoms, the affected area of the skin self-conscious burning sensation or neuralgia. The favored sites are, in order of innervation, the intercostal nerve, cervical nerve, trigeminal nerve, etc. If it occurs in the cervical nerve innervation area, symptoms of tingling in the back of the head may occur. When patients experience discomfort, they should go to the hospital immediately.