Level Crossing Rules in Spain

28 August 2026 6 min read DGTTestPro Editorial Team

Spanish law (RGC article 97) is blunt at level crossings: never enter unless you can clear the tracks, and if you stall on the rails, get everyone out at once.

The single most important level crossing rule in Spain is simple: never start to cross unless you are sure you can clear the tracks completely on the other side. Spanish traffic law (RGC article 97) also requires that if your vehicle is ever immobilised on a crossing, you get every occupant out at once, move the car off the rails if you can, and warn approaching trains if you cannot. This guide explains how to approach a crossing, what to do in an emergency, the overtaking ban, and the signs to expect.

Approaching a level crossing

A level crossing is a point where the road meets a railway line at the same level, without a bridge or tunnel. Trains cannot stop quickly and always have priority, so your job is to arrive slowly, look, and be ready to wait. Treat every crossing as active, even a quiet rural one you have used many times before.

As you approach, reduce speed and watch for the warning signs and any barriers or lights. If the lights are flashing, the barrier is down or moving, or a bell is ringing, stop and wait behind the marked line. Do not zigzag around a half barrier. Only cross when the lights are off, the barriers are fully up, and you can see the line is clear in both directions.

Before you move onto the tracks, look at the road ahead, not just the rails. Is there space for your whole vehicle on the far side? A queue of traffic, a red light, or a junction just beyond the crossing can leave you stranded on the rails. That risk is exactly why the next rule exists.

Why you must never enter if you cannot clear it

Under RGC article 97, you must not start to cross a level crossing unless you can complete the crossing without stopping on the tracks. This is not just guidance; it is the rule that prevents the worst kind of collision. If traffic ahead is not moving, you wait on the road side of the crossing, however long it takes.

The trap is a crossing that sits close to a roundabout, a red light, or a busy junction. Drivers edge forward to keep up with the car in front, then the queue stops and they are stuck on the rails with a barrier coming down. Leave a full vehicle length of clear space on the far side before you commit. If you are not certain it will be there, do not move.

What to do if your car stalls on the tracks

If your vehicle is immobilised on a level crossing, act immediately, because a train may already be approaching. RGC article 97 sets out the order clearly. First, get everyone out of the vehicle at once and move them well clear of the tracks. People come before the car, always.

Next, if it is possible, move the vehicle off the rails. You can put it in gear and use the starter motor to inch a manual car forward, or push it with help, but only if there is time and no train is near. If you cannot clear the vehicle, your priority becomes warning the train drivers and anyone else as early as possible, so a driver has the maximum distance to react.

  • Get everyone out of the car and away from the line straight away.
  • Clear the vehicle off the tracks if you safely can.
  • Warn others early if you cannot move it: alert the train drivers and other road users as soon as possible.
  • Use the emergency phone at the crossing if there is one, and call the emergency number 112.

The goal is distance and time. The sooner a train driver knows, the more space they have to brake, and the further you and your passengers are from the rails, the safer you are.

The overtaking ban at level crossings

Overtaking is prohibited at level crossings and on the approach to them. This sits alongside the other places where Spanish law bans overtaking, such as bends and crests with poor visibility, pedestrian crossings, and junctions. Near a crossing, a vehicle ahead may brake hard or stop for a barrier you cannot yet see, so pulling out to pass is dangerous.

Stay in line, keep your distance, and be patient as you approach. For the full picture of when you may and may not pass, see our guide to overtaking rules in Spain.

The signs and lights to know

Level crossings are announced by warning signs, and many have barriers and lights on top. Learning the signs in advance means you recognise a crossing early and slow down in good time. Spanish warning signs are triangular with a red border, and several relate directly to railways.

  • Gated crossing ahead: a warning sign for a level crossing that has a barrier or gate.
  • Ungated crossing ahead: a warning sign for a crossing with no barrier, so extra care is needed.
  • Countdown markers: striped panels beside the road that count you down to the crossing.
  • Saint Andrew's cross: the X-shaped sign placed right at the crossing itself, marking the point where the railway crosses.
  • Red flashing lights: a train is coming or the crossing is closed. Stop and wait.

For a wider look at how the triangular warning signs work, read Spanish warning signs explained. Recognising them quickly is a common theme in the theory exam, which you can prepare for with our DGT theory test in English guide.

Frequently asked questions

What is the main rule at a level crossing in Spain?

Never start to cross unless you can clear the tracks completely on the far side. RGC article 97 makes this the core rule, because stopping on the rails with a train approaching is the most dangerous situation you can create.

What should I do if my car stops on the tracks?

Get all occupants out of the vehicle immediately and away from the line. If you safely can, move the car off the rails. If you cannot, warn the train drivers and others as early as possible, and use the emergency phone or call 112.

Can I overtake near a level crossing?

No. Overtaking is prohibited at level crossings and on the approach to them, just as it is at pedestrian crossings and junctions. A vehicle ahead may stop suddenly for a barrier, so stay in line and keep your distance.

What does the X-shaped sign at a crossing mean?

It is Saint Andrew's cross, placed at the crossing point itself to mark where the railway meets the road. When you see it, you are at the crossing, so only proceed if the lights are off and the line is clear.

Do trains always have priority?

Yes. Rail vehicles always have priority in Spain. Trains cannot stop or steer to avoid you, so at every crossing you yield, wait behind the line when signalled, and only cross when it is completely clear.

Sources

  • Reglamento General de Circulacion (Real Decreto 1428/2003).

Last updated: August 2026.

About DGTTestPro

Question bank
3857+ questions, every one in English and Spanish
Licence categories
7 covered (B, A2, AM, C, D, CAP, B+E)
Theory book
17 chapters, free to read
Exam simulation
30 questions in 30 minutes, pass mark 27/30 - the real DGT format
Price
Free to start. Premium is € 24,99 once for 180 days - not a subscription, no auto-renewal.

Questions are written and checked by people against the official DGT syllabus - never AI-generated. Your data stays in the EU.

See what Premium includes · Compare with other DGT test sites

Ready to pass the DGT theory test?

Practise official-format questions in English and Spanish, with explanations after every answer.

Try a free practice test