+34 663 48 41 13

Home › Guides

Guide · 16 October 2026

Why Spanish doors lock behind you

In Spain you can lock yourself out just by pulling the door shut. Here's how the doors in Spanish flats work, and a few simple habits that keep your keys on the right side.

Visitors often tell me the same thing: "I only stepped out to take the rubbish down." In many countries, a flat door stays open until you lock it with a key. In Spain it doesn't. Once you understand why, it's easy to avoid. This guide is general and practical. It explains the parts of the door, not how to get through one.

If you're standing at the door right now: skip the reading and call or WhatsApp me on +34 663 48 41 13. I speak English and I'll give you a price before I set off. The steps for that moment are in my guide on being locked out in Madrid.

The latch: why the door locks by itself

Most flat doors in Spain have a resbalón (the latch). It's the slanted metal tongue at the edge of the door that springs into the frame when the door closes. From inside, you open it with the handle. From outside, there's usually no handle that turns, just a fixed knob or pull. So when the door clicks shut, the only way back in from the landing is with the key.

That's why a gust of wind, a door that swings closed behind you, or a quick trip to the lift can leave you outside in your slippers.

Pulled shut vs double-locked

There are two different ways a Spanish door can be closed:

  • Pulled shut: only the latch is holding it. This is what happens when you step out without the key.
  • Locked with the key (Spaniards say echar la llave, "throwing the key"): you turn the key one or more times and solid bolts go into the frame. This is much more secure, and it's what you should do when you leave the flat.

For a locksmith, the difference matters. A door held only by the latch is usually simpler to open and less likely to need new parts. A double-locked door takes more work. It's one of the reasons I ask how the door was closed before I give you a price.

Armoured doors: puerta blindada and acorazada

A lot of flats in Madrid and Toledo have a puerta blindada (armoured door). From the outside it looks like a normal wooden door, but there's a steel sheet inside, and the lock throws several bolts at once, sometimes into the top, bottom and hinge side of the frame too. A puerta acorazada (reinforced door) goes further, with a steel frame and structure.

These doors are good news for security, and most are fitted with a sturdy lock and a high-quality bombín (the lock cylinder). They also tend to have a latch, so they lock behind you just like any other. Opening one is more involved, which is why prices vary with the door type.

The street door: the portal

Spanish apartment buildings have a shared front door onto the street, called the portal. It has its own key, different from your flat key, and it also closes and locks by itself. Things worth knowing:

  • Your key ring usually has at least two keys: one for the portal, one for the flat. Sometimes a third for the mailbox.
  • Next to the portal there's an intercom, the portero automático, with buttons by floor and letter ("2º A", "4º D").
  • Some older buildings in central Madrid have a portero (a caretaker) during the day, who can let you into the building but won't have your flat key.
  • At the street door you'll often find a neighbour coming in or out. Being inside the building but outside your flat is still a lockout, but at least you're out of the weather.

Simple habits to avoid getting locked out

  1. Keys in hand before the door closes. Make it a rule: you don't pull the door until you can feel the keys in your hand or pocket.
  2. Keep the keys in one place inside, like a bowl or hook by the door, not in a jacket on the bed.
  3. Lock with the key when you leave, not just the latch. It's safer, and it forces you to have the key with you.
  4. Know which key is which. On the first day, test the portal key and the flat key so you're not guessing in the dark.
  5. Leave a spare with someone you trust if you live here: a friend, a colleague or a neighbour.
  6. Save a locksmith's number in your phone before you need it, along with your full address, floor and door letter.

If it happens anyway

I'm Ismael, a self-employed locksmith covering central Madrid and Toledo, 24 hours a day. You talk to me in English, not a call centre. Opening a door costs €150–250, call-out included, and I give you the exact figure on the phone before I leave, also at night or on a Sunday. I'll ask for your ID and proof you live or stay there, which is what keeps your home safe from anyone else. You always get an invoice. And I'll give you a real arrival time, checked on Google Maps, not a made-up promise. See my prices for the details.

The WhatsApp button on the site asks to share your location and sends it to me as a Google Maps link, so I know exactly where you are.

Now you know why the door locked behind you, and how to stop it happening again. If it does, save +34 663 48 41 13 and call or WhatsApp me. I'll tell you the price and the time, and get you back inside.

Frequently asked questions

Why did my door lock when I closed it in Spain?

Most Spanish flat doors have a latch (resbalón) that clicks into the frame as soon as the door shuts. From outside there's no turning handle, so you need the key to get back in.

What is a puerta blindada?

It's an armoured door: it looks like wood but has a steel sheet inside and a lock that throws several bolts. It's common in Madrid flats and safer than a standard door.

What is the portal in a Spanish building?

It's the shared street door of the building. It has its own key, different from your flat key, and also locks by itself when it closes.

Does it cost more if the door was locked with the key?

Usually yes. A door held only by the latch is simpler to open than a double-locked one. I tell you the exact price on the phone before I set off.

Call or WhatsApp: +34 663 48 41 13

Tell me what happened and I'll tell you what needs doing, what it costs and when I can be there. In English, 24/7.

Call 663 48 41 13 WhatsApp 663 48 41 13