Skip to content
Chessblood

Opening guide · ECO C60–C99

Ruy Lopez

1.e4 e5 2.Nf3 Nc6 3.Bb5: the oldest major opening still at the top of grandmaster practice. White puts long-term pressure on e5 and plays for a slow, strategic edge.
Chosen by
White
ECO
C60–C99
Lines in this guide
7
Updated

The Ruy Lopez (or Spanish Opening) begins 1.e4 e5 2.Nf3 Nc6 3.Bb5. The bishop attacks the knight that defends e5, not to win the pawn at once (3...a6 4.Bxc6 dxc6 5.Nxe5 is met by 5...Qd4 regaining it), but to maintain pressure on Black's center for the whole middlegame. White usually follows with O-O, Re1, c3 and d4, building the ideal center at a pace Black cannot easily disturb.

Black has many good defenses. The Closed Ruy Lopez (3...a6 4.Ba4 Nf6 5.O-O Be7) leads to the classical maneuvering battle in which White plays c3, d4 and the famous knight tour Nb1-d2-f1-g3, while Black counters with ...b5, ...d6, ...Na5 and ...c5. The Berlin Defense (3...Nf6) trades queens early and is famous for its solidity. The Open Variation (5...Nxe4) and the Marshall Attack (8...d5) are sharper options.

Because the Ruy Lopez is so strategic, it is an excellent teaching opening: pawn breaks, piece maneuvers and the balance between space and counterplay all appear in their purest form. The main line below is the Closed system through 6...b5, the position reached in thousands of master games.

The main line

Every move below is replayed by chess.js when the site is built, so the diagram is always the real position.
Position after 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5
Ruy Lopez main line
Move#WhiteBlack
1.e4e5
2.Nf3Nc6
3.Bb5a6
4.Ba4Nf6
5.O-OBe7
6.Re1b5

3...a6 asks the bishop its intentions; 4.Ba4 keeps the pressure. 5.O-O allows 5...Nxe4 (the Open Variation) because 6.d4 regains the pawn with the initiative. 5...Be7 and 6.Re1 defend and attack e4/e5 respectively; now 6...b5 is necessary, since otherwise 7.Bxc6 dxc6 8.Nxe5 would win a pawn. The game typically continues 7.Bb3 d6 8.c3 O-O 9.h3 (stopping ...Bg4) with the main Closed Ruy Lopez, where Black chooses between 9...Na5 (Chigorin), 9...Nb8 (Breyer) and 9...Bb7 (Zaitsev).

Plans for both sides

Move orders are easy to look up; plans are what you need once the opponent leaves the book.

Plans for White

  • Build the center with c3 and d4 and keep the tension until a favorable moment to play d5 or dxe5.
  • Reroute the queen's knight: Nb1-d2-f1-g3 (eyeing f5) or -e3 (eyeing d5), then consider Nf5 or Nh2-g4 for a kingside attack.
  • Play a4 to question the b5-pawn and gain the a-file or the c4-square.
  • In the Exchange Variation, trade pieces and aim for an endgame where the healthier kingside majority tells.

Plans for Black

  • Counter in the center and on the queenside with ...c5 and ...Na5 (Chigorin) or regroup with ...Nb8-d7 and ...Bb7 (Breyer).
  • Use the ...Re8 and ...Bf8 setup to defend the kingside while keeping the e5-pawn solidly protected.
  • Break with ...d5 when it is prepared, sometimes as a pawn sacrifice (Marshall) for a lasting initiative.
  • In the Berlin endgame, use the bishop pair and the queenside majority, keep the king active and trade one pair of rooks.

Key variations

6 lines worth knowing, each with the position it leads to.

Strengths and weaknesses

Why play it

  • Long-term pressure on e5 and a flexible center give White a stable, lasting initiative.
  • The plans are logical and transferable: c3 and d4, the Nb1-d2-f1-g3 maneuver, a4 against ...b5.
  • White can choose the level of sharpness: 4.d3 and the Exchange Variation avoid the heaviest theory.
  • The positions reward understanding, making it one of the best openings for learning strategy.

What it costs

  • Black has many sound defenses (Berlin, Marshall, Open, Breyer), each requiring separate preparation.
  • The Berlin endgame and the Marshall Attack are notoriously drawish at high level if Black is well prepared.
  • The Closed main lines are among the longest theoretical variations in chess; the real game often starts around move 15.
  • Early mistakes with the bishop (e.g. allowing the Noah's Ark trap) can lose material to simple pawn moves.

Traps to know

Short tactical sequences that decide games at club level. Learn them so you never fall for them, not to hope for them.

Advice if you are new to the Ruy Lopez

  1. Do not take on c6 and then grab e5 without checking ...Qd4 or ...Qg5, which regain the pawn with an active queen.
  2. After 3...a6 4.Ba4 Nf6 5.O-O Be7 6.Re1, remember that 6...b5 is forced; if Black forgets, Bxc6 followed by Nxe5 wins a pawn.
  3. Learn the knight maneuver Nb1-d2-f1-g3 (or e3) and the pawn break d4; they are the heart of the Closed Ruy Lopez.
  4. If the Marshall Attack worries you, play 8.a4 or 8.h3 and get a normal game; if the Berlin does, 4.d3 keeps the queens on.

When you have played a few games with it, run them through the game review. The report names the opening, marks the moves that were still book, and shows where you left the line and what it cost.

Ruy Lopez questions

Why does White play 3.Bb5 instead of 3.Bc4?
3.Bb5 attacks the defender of e5 and sets up long-term pressure on the center and the option of Bxc6 to damage Black's structure. 3.Bc4 (the Italian Game) aims directly at f7 and leads to faster, more tactical play. Both are excellent; the Ruy Lopez tends to produce slower, more strategic games.
Does 3.Bb5 threaten to win the e5-pawn?
Not yet. After 3...a6 4.Bxc6 dxc6 5.Nxe5, Black regains the pawn with 5...Qd4 (forking the knight and e4) or 5...Qg5. The pressure on e5 becomes real only once White has castled and played Re1, which is why 6...b5 is necessary in the main line.
How do I avoid the Berlin Defense?
Play 4.d3 instead of 4.O-O. White keeps the queens on and reaches a slower, Italian-style game with c3, Nbd2 and Re1. It gives up any attempt at an immediate advantage but avoids the well-analyzed Berlin endgame entirely.
Is the Ruy Lopez too theoretical for club players?
The main lines are long, but the ideas are consistent and you do not need to memorize them to move 20. Knowing the first eight moves, the Noah's Ark and Mortimer traps and the standard plans (c3-d4, the knight maneuver, a4) is enough to play it well at club level and learn as you go.