Occipital neuralgia is a condition characterized by sharp, shooting pain in the back of the head, scalp, and neck, following the path of the occipital nerves. It can result from compression, irritation, or injury to these nerves, often due to muscle tension, trauma, or structural abnormalities in the neck.