Nasal administration of a somatostatin peptide analogue or derivative for treating acute attacks of migraine or cluster headache.