Occipital neuralgia is the name given to inflammation or injury of the nerves running from the upper end of your spinal cord to the scalp. This causes pain at the back of the head or the base of the skull, which resembles migraines and certain other types of headaches.