Ruy Lopez (Spanish Opening)

The Ruy Lopez (Spanish Opening) puts pressure on the knight that defends e5 with 3.Bb5 and has been the most respected 1.e4 e5 opening at the top level for centuries.

Position at the end of the main line

Main line

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3

Play it in the opening explorerTry it against the computer

History

It is named after the Spanish priest Ruy López de Segura, who analysed it in 1561. It is a staple of world championship matches; the Berlin Defence made famous in Kasparov–Kramnik is one of its branches.

White's plan

  • Bb5 targets the knight that defends e5, aiming to undermine Black's centre over time.
  • c3, d4 and h3 build a broad centre; the knight comes to the kingside via d2-f1-g3.
  • The bishop on b3 keeps long-term pressure on f7 and d5.

Black's plan

  • ...a6 and ...b5 kick the bishop and gain queenside space.
  • Black holds the e5 point and often plays ...Na5 to trade the b3 bishop, followed by ...c5 (Chigorin plan).
  • Sharper paths: the Marshall Gambit sacrifices a pawn for an attack, while the Berlin heads for a solid queenless middlegame.

Key variations

Closed Ruy Lopez

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3

The main line: long, deep strategic battles.

Open in explorer →

Berlin Defence

1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8

The 'Berlin Wall': queens are traded early and Black is extremely solid.

Open in explorer →

Exchange Variation

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O

White damages Black's pawn structure and hopes for an endgame edge.

Open in explorer →

Marshall Attack

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O 8.c3 d5

Black gives a pawn for a fast attack on White's king.

Open in explorer →

Open Ruy Lopez

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4

Black takes on e4 and chooses dynamic play.

Open in explorer →

Traps you should know

Noah's Ark Trap

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 d6 5.d4 b5 6.Bb3 Nxd4 7.Nxd4 exd4 8.Qxd4 c5 9.Qd5 Be6 10.Qc6+ Bd7 11.Qd5 c4

If White recaptures with 8.Qxd4?, ...c5 and ...c4 trap the bishop on b3 and Black wins a piece. Beware the a6-b5-c4 pawn chain when the bishop sits on b3!

Position at the end of the trap
Step through the moves →

Who should play it?

For players who enjoy long strategic games. The theory is very deep, but learning the key ideas and the main line is enough to start.

Frequently asked questions

Why is it called the Ruy Lopez?

It bears the name of the 16th-century Spanish priest Ruy López de Segura, who analysed it in his book.

Does White win the e5 pawn right after 3.Bb5?

No. After 3...a6 4.Bxc6 dxc6 5.Nxe5? Qd4! Black regains the pawn. The threat only becomes real once the centre opens with d4.

Why is the Berlin Defence so popular?

Queens come off early and Black reaches a very solid endgame that limits White's attacking chances.

Learn this opening with lessons

Related openings

  • Italian Game — The Italian Game is a classic 1.e4 e5 opening in which White develops the bishop to c4 and eyes the weak f7 square.
  • Four Knights Game — The Four Knights Game, in which both sides develop their knights to their natural squares, is symmetrical and solid—perfect for learning opening principles.
  • Scotch Game — The Scotch Game opens the centre immediately with 3.d4, leading to open lines and rapid development.
  • Petrov's Defence — Petrov's Defence (the Russian Game) answers 2.Nf3 by counter-attacking e4 with 2...Nf6 instead of defending e5.

← All chess openings