The Ruy Lopez: A Complete Guide

·6 min read·ruy lopez opening

The Ruy Lopez is the opening you reach for when you want to play real chess. It's been played at the top level for five hundred years. Every world champion of the last century played it from both sides. Magnus Carlsen still plays it. Kasparov wrote about it for years.

That depth is also what scares beginners off. The theory looks enormous. The lines have intimidating names — the Marshall, the Berlin Wall, the Open Spanish, the Closed. But the core ideas of the Ruy Lopez are remarkably simple. Once you understand them, the variations make sense as different expressions of the same handful of plans.

This guide covers what the Ruy Lopez is trying to do, the four mainline variations every player should recognize, and the strategy behind them.

Want to drill the Ruy Lopez right now? Play Tactical Theo (800 Elo, reliable at spotting and punishing simple tactical errors) on the Ruy Lopez practice page. No account needed.

The opening moves

  1. e4 e5
  2. Nf3 Nc6
  3. Bb5

That's it — three moves and you're in the Ruy Lopez. The bishop move on b5 is the entire point of the opening.

What 3.Bb5 is actually doing

Beginners often hear "3.Bb5 attacks the knight defending e5" and think that's the threat. It mostly isn't. After 3...a6 4.Bxc6 dxc6, White is fine but doesn't win a pawn — 5.Nxe5? would lose material because of 5...Qd4 picking up the knight.

The real point of 3.Bb5 is long-term pressure. The bishop sits on b5 attacking the knight that defends e5. The knight is pinned to its defensive duty. If Black ever lets White trade on c6 and take on e5, the e-pawn falls. So Black has to constantly worry about the c6 knight's protection.

This pressure changes the whole opening. It forces Black to make decisions — kick the bishop, defend the knight, or accept the trade — that all have downsides.

The four mainline variations

There are essentially four ways for Black to handle the Ruy Lopez after 3.Bb5. Each is well respected.

1. The Morphy Defense: 3...a6

This is the most popular reply. Black asks the bishop a question. White has two main answers:

  • 4.Ba4 — the Closed Ruy Lopez. The bishop retreats, keeping the option to capture later. This leads to the deepest, richest, most studied middlegames in chess.
  • 4.Bxc6 dxc6 — the Exchange Variation. White accepts the trade. Black has the bishop pair but doubled c-pawns; White has the better structure. Quieter than the Closed, still very playable.

The Closed Ruy Lopez continues 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3 — known as the "tabiya" of the entire opening. From this position, hundreds of master games have been played, and the typical plans are:

  • For White: Build the slow d2-d4 break, develop the queenside knight via Nbd2-Nf1-Ng3 (the famous "Spanish reroute"), and create kingside attacking chances.
  • For Black: Find the right moment to play ...exd4 and trade in the center, then activate the bishop pair in the resulting positions.

2. The Berlin Defense: 3...Nf6

The Berlin was Kramnik's weapon to beat Kasparov for the world championship in 2000, and it has been one of Black's most respected replies ever since.

After 3...Nf6 4.O-O Nxe4 5.d4 (the main line) Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8, the queens come off the board early and the position is sometimes called the "Berlin Wall." Black has a doubled pawn structure and lost castling, but White's pawn on e5 is also a target and the position is genuinely balanced.

The Berlin is great if you want to defuse White's attacking chances. Less great if you want to play for a win as Black — the symmetrical structure often leads to drawn endgames.

3. The Open Spanish: 3...a6 4.Ba4 Nf6 5.O-O Nxe4

Instead of accepting the closed setup, Black grabs the pawn on e4. White gets ahead in development but Black has an extra pawn and reasonable activity. The lines are sharper and more concrete than the Closed Ruy Lopez. If you're a tactical player, this is your variation.

Main line: 6.d4 b5 7.Bb3 d5 8.dxe5 Be6 9.c3 — both sides have very specific things they need to know to navigate the middlegame.

4. The Marshall Attack: 3...a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O 8.c3 d5!?

The Marshall is a pawn sacrifice — Black gives up the e5 pawn for long-term attacking chances against White's king. After 9.exd5 Nxd5 10.Nxe5 Nxe5 11.Rxe5 c6 12.d4 Bd6 13.Re1 Qh4, Black has a vicious kingside attack and the engine evaluation is roughly balanced.

The Marshall is double-edged and incredibly well-analyzed. Most top players "accept the Marshall" only with deep preparation, which is why so many White players choose Anti-Marshall systems (8.h3 instead of 8.c3) to dodge it entirely.

Strategic themes

Whatever variation you play, certain ideas come up over and over:

  • The Spanish reroute. Nbd2-Nf1-Ng3 (or Ne3) is White's standard maneuver to bring the queen's knight to a great square. Knowing this maneuver makes the Closed Ruy Lopez positions feel familiar.
  • The d4 break. White's main central break. Timing it correctly — not too early, not too late — is the most important strategic decision in the opening.
  • The c4 break for Black. In some lines, ...c5 followed by ...c4 hits White's bishop on b3 and gains queenside space.
  • The bishop pair. Black often has the bishop pair after exchanges on c6, but White's better structure compensates. The middlegame fight is about whether the bishops or the structure wins out.

Mistakes to avoid

For White:

  1. Don't play 4.Bxc6 too quickly. The bishop is often more useful keeping the pressure on. Capture on c6 only when the resulting structure favors you.
  2. Don't rush d4. Build first — castle, push c3, develop the knight to d2 — and then push d4 when Black can't easily react.
  3. Don't underestimate the Marshall. If you're going to play 8.c3, know what you're doing on move 8...d5.

For Black:

  1. Don't get cute. Most "novel" Black responses to the Ruy Lopez have been analyzed for decades and are just bad. Stick to the mainlines until you really know what you're doing.
  2. Don't trade prematurely. The exchange on d4 is critical — get it wrong and your bishops have nowhere to go.
  3. Don't ignore the queenside knight. The c6 knight is the linchpin of the entire opening. Keep it defended, or accept that the e5 pawn might fall.

Why the Ruy Lopez is worth learning

You will play this opening, or face it, in your first thousand games. Every reasonably ambitious 1.e4 player at some point reaches for 3.Bb5. Knowing the typical structures and plans — not the deepest theory, but the ideas — turns the Spanish from intimidating into intuitive.

The fastest way to learn it is to play it. From both sides. The structures take ten or fifteen games to feel natural. After that, the Ruy Lopez becomes the opening you reach for when you want a real game of chess.

Drill it now: Play the Ruy Lopez against Tactical Theo (800 Elo) until the Spanish reroute and the d4 break feel automatic. Switch sides every few games — you'll learn the opening twice as fast.

Practice this opening

Play the Ruy Lopez against an AI bot tuned to your level — free, no account required.

Practice the Ruy Lopez →

Keep reading