Opening guide · ECO C60–C99
Ruy Lopez
- 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
| Move# | White | Black |
|---|---|---|
| 1. | e4 | e5 |
| 2. | Nf3 | Nc6 |
| 3. | Bb5 | a6 |
| 4. | Ba4 | Nf6 |
| 5. | O-O | Be7 |
| 6. | Re1 | b5 |
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
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
- 87654321abcdefgh
Closed Ruy LopezC92
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 classical battleground. White builds a center with c3 and d4 and reroutes the knight via d2-f1-g3 (or e3); Black plays ...Na5 and ...c5 (Chigorin), ...Nb8-d7 (Breyer) or ...Bb7 and ...Re8 (Zaitsev). The struggle revolves around whether White's center becomes a strength or a target.
Drill this line - 87654321abcdefgh
Berlin DefenseC67
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 endgame: queens off by move 8, Black has the bishop pair and a healthy majority on the queenside, White has a kingside majority and the better king position. Famous for its solidity since Kramnik used it against Kasparov in 2000. White often avoids it with 4.d3 and a slower game.
Drill this line - 87654321abcdefgh
Exchange VariationC69
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O f6
White gives up the bishop pair to damage Black's structure: White has four healthy pawns against three on the kingside, which matters in a pure pawn endgame. Black's compensation is the bishop pair and open lines. 5...f6 solidly defends e5; 5...Bg4 and 5...Qd6 are the active alternatives.
Drill this line - 87654321abcdefgh
Marshall AttackC89
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 9.exd5 Nxd5 10.Nxe5 Nxe5 11.Rxe5 c6
Black sacrifices a pawn for a lasting attack on the king: ...Bd6, ...Qh4 and ...Bg4 follow, and White must defend precisely with g3, Re1, Qf3 or d4 and Be3. Theory runs very deep and many lines are drawn by force, so White players often play 8.a4 or 8.h3 (Anti-Marshall) to sidestep it.
Drill this line - 87654321abcdefgh
Open VariationC80
1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4 6.d4 b5 7.Bb3 d5 8.dxe5 Be6
Black grabs e4 and then establishes a knight on e4 and a pawn on d5. Active piece play for Black, but the e5-pawn cramps the kingside and the c5-square and the a2-g8 diagonal give White targets. Sharp and concrete, with a long history from Tarrasch to Korchnoi.
Drill this line - 87654321abcdefgh
Schliemann DefenseC63
1.e4 e5 2.Nf3 Nc6 3.Bb5 f5
A gambit-style counterattack on e4. After 4.Nc3 fxe4 5.Nxe4 d5 or 4.d3, play becomes tactical quickly. Objectively somewhat risky but fully playable, and a good surprise weapon against players who only know the Closed main lines.
Drill this line
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
- 12345678hgfedcba
Good for Black
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
In the Modern Steinitz, White wins a pawn with 8.Qxd4?? but the pawns on a6, b5 and c5 then chase the queen and trap the bishop on b3 after 8...c5 9.Qd5 Be6 10.Qc6+ Bd7 11.Qd5 c4. The bishop is lost. White should play 8.Bd5 or avoid the whole thing with 6.c3 or 7.Nxd4 exd4 8.c3.
- 12345678hgfedcba
Good for Black
Mortimer Trap
1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.d3 Ne7 5.Nxe5 c6 6.Ba4 Qa5+ 7.Nc3 Qxe5
Black's odd-looking 4...Ne7 unprotects e5 on purpose. If White grabs it with 5.Nxe5?, then 5...c6 attacks the bishop and after 6.Ba4 Qa5+ forks king and knight, winning the piece back with interest. White should simply develop with 5.O-O or 5.c3.
Advice if you are new to the Ruy Lopez
- Do not take on c6 and then grab e5 without checking ...Qd4 or ...Qg5, which regain the pawn with an active queen.
- 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.
- Learn the knight maneuver Nb1-d2-f1-g3 (or e3) and the pawn break d4; they are the heart of the Closed Ruy Lopez.
- 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?
Does 3.Bb5 threaten to win the e5-pawn?
How do I avoid the Berlin Defense?
Is the Ruy Lopez too theoretical for club players?
Related openings
- Italian GameC50–C591.e4 e5 2.Nf3 Nc6 3.Bc4 aims the bishop at f7 and develops naturally. From the quiet Giuoco Pianissimo to the Evans Gambit and the Fried Liver, it suits every style.
- Queen's GambitD06–D691.d4 d5 2.c4 offers a pawn to pull Black's d-pawn off the center. Declined or accepted, it gives White a healthy space advantage and is the backbone of 1.d4 play.
- London SystemA46, A48, D021.d4 followed by Bf4, e3, Nf3, c3 and Bd3 against almost anything. A reliable, low-theory system whose plans matter more than its move orders.