Jet lag and insomnia are not the same condition, and treating one as the other can leave you sleepless for the rest of your trip. Many travellers arriving in Spain assume their inability to sleep is just their body clock adjusting — but if you were already taking sleep medication at home, or if sleeplessness has persisted beyond a few nights, the problem likely needs proper treatment. The catch that surprises almost everyone: melatonin, the most common sleep medication in Spain, requires a prescription here — even though you can buy it off the shelf in most other countries.
Why Your Brain Won't Let You Sleep
Your brain contains a built-in clock called the suprachiasmatic nucleus that responds to light and darkness. This clock regulates the release of melatonin, a hormone produced by the pineal gland when evening darkness arrives. Melatonin does not knock you out the way a sedative does. Instead, it lowers your core body temperature and quiets neural activity, signalling that it is time to transition into sleep. When this system breaks down — whether from chronic insomnia, medication dependence, travel across time zones, or the stress of an unfamiliar environment — your brain either fails to produce enough melatonin at the right time or cannot respond to it properly.[1]
The result is difficulty falling asleep, staying asleep, or both. Lying awake for hours is not just frustrating; it triggers a stress response that releases cortisol, which further suppresses melatonin production — like a thermostat that senses heat and turns the heating up instead of down. Each bad night makes the next one more likely.[2]
For travellers who were already taking sleep medication at home, the situation compounds. Your brain may have adapted to an external source of sleep regulation. Stopping that medication abruptly — because you ran out, lost your luggage, or assumed you could replace it easily — can cause rebound insomnia, where sleep becomes even harder than it was before treatment began. This is a recognized withdrawal effect, not a sign that your underlying condition has worsened.[3]
Travel to Spain adds its own complications. Long summer daylight hours — sunsets after 10 PM in many regions — delay your natural melatonin release. Noise from street life continuing past midnight, unfamiliar beds, and the general alertness of being in a new place all interfere with the environmental cues your brain depends on to initiate sleep. Spain's culture of late dinners (often at 9 or 10 PM) can also shift your body's internal schedule further than you expect.
The Sleep Medications Available to You
Understanding which sleep medications are available in Spain — and which ones require a prescription — can save you hours of confusion at the pharmacy counter. The rules here differ significantly from what you may be used to at home.
Melatonin 2 mg Prolonged-Release (Circadin)
This is the detail that catches most tourists off guard. In many countries — the UK, the US, Australia — melatonin is sold over the counter as a supplement. In Spain, melatonin at doses of 2 mg and above is classified as a medication and requires a receta médica (prescription). Circadin releases melatonin slowly over several hours, mimicking the natural overnight pattern your brain produces. Clinical studies show it reduces the time to fall asleep by an average of 15–19 minutes and improves overall sleep quality, particularly in adults over 55.[1] It is not a sedative and does not cause the grogginess or dependence associated with stronger sleeping pills.
Zolpidem (Stilnox) / Zopiclone
These are the medications most commonly known as "sleeping pills." Zolpidem and zopiclone work by enhancing the effect of GABA, a brain chemical that reduces neural activity and promotes sleep. They are effective — most people fall asleep within 15–30 minutes — but they carry risks of dependence, next-day drowsiness, and unusual behaviours during sleep.[3] In Spain, these are strictly controlled. A doctor will only prescribe them as a continuation of existing treatment, and you will typically need documented proof — a letter from your home doctor or your original prescription — showing you were already taking them. They are not prescribed as a new treatment through a standard telemedicine consultation.
Doxylamine (Dormidina)
Doxylamine is a first-generation antihistamine that causes drowsiness as a side effect — and that side effect is exactly why it is marketed as a short-term sleep aid in Spain. Dormidina is the most common brand. It works reasonably well for occasional sleeplessness, typically helping you fall asleep within 30–60 minutes. However, it is not suitable for regular use. It causes significant grogginess the following morning, can interfere with concentration and driving, and loses effectiveness after a few consecutive nights as your body builds tolerance.[4] Think of it as a temporary bridge for one or two particularly bad nights, not a solution for ongoing insomnia.
What You're Experiencing — and When It Needs Treatment
The line between "bad sleep due to travel" and "insomnia that needs treatment" is not always obvious. Jet lag typically resolves within three to five days as your body adjusts to the new time zone — you may fall asleep too early or too late, but the total amount of sleep you get remains roughly normal once your rhythm shifts. Insomnia is different. If you are lying awake for more than 30 minutes most nights, waking repeatedly and struggling to fall back asleep, or feeling exhausted during the day despite having the opportunity to sleep, that pattern points toward insomnia rather than simple travel fatigue.[2]
For people who were already on sleep medication, the signs are more acute. Rebound insomnia — the worsening of sleep that occurs when medication is suddenly stopped — can begin within one to two nights of missing your usual dose. You may experience vivid or disturbing dreams, heightened anxiety at bedtime, and a racing mind that refuses to quiet down. These are withdrawal symptoms, not a sign that your insomnia has suddenly become more severe on its own.[3]
If you were taking sleep medication at home and have run out during your trip, do not wait for the problem to resolve on its own. Rebound insomnia can persist for days to weeks without the right intervention.
The physical effects of poor sleep accumulate quickly. After two or three nights of significantly disrupted sleep, most people notice impaired concentration, irritability, difficulty making decisions, and physical clumsiness — none of which you want while navigating a foreign country, driving a rental car, or crossing busy streets. Sleep deprivation also suppresses immune function, making you more vulnerable to the infections and illnesses that already circulate more freely among travellers.[5]
What You Can Buy at a Spanish Pharmacy
Spanish pharmacies (farmacias) can help with some sleep-related products, but the options are more limited than you might expect. The main over-the-counter sleep aid is doxylamine, sold as Dormidina. You can also find low-dose melatonin supplements (under 2 mg, often marketed as 1 mg or 1.9 mg) without a prescription in some farmacias, though availability varies and these products are classified as food supplements rather than medicines — meaning they are not subject to the same quality controls as Circadin. Valerian root (valeriana) and other herbal preparations are also available over the counter, though clinical evidence for herbal sleep aids remains limited.[6] What the pharmacy cannot sell you without a receta médica is melatonin at therapeutic doses (2 mg or above), zolpidem, zopiclone, or any benzodiazepine. If you need any of these, you will need to see a doctor first. Expect to pay between €5 and €8 for Dormidina and between €5 and €15 for melatonin supplements or herbal products.