Ruy Lopez
Ruy Lopez
Occupies the centre and frees the bishop and queen.
Overview
The Ruy Lopez, or Spanish Game (ECO C60 to C99), is arguably the most studied opening in the entire history of chess. It owes its name to the Spanish priest Ruy López de Segura, who analysed it in his 1561 treatise — one of the first chess books ever published. After 1.e4 e5 2.Nf3 Nc6 3.Bb5, White attacks the knight that defends e5: the pressure on Black’s central pawn is indirect but permanent, and it shapes the whole game.
Unlike the Italian, which targets f7 directly, the Spanish plays the long game: White does not try to win e5 immediately (the direct attempt actually fails tactically), but instead poses Black strategic problems that renew themselves in every phase of the game. This is why almost every world champion has made it a main weapon, and why it is sometimes called "the acid test of 1.e4 e5".
The main line of this guide is the great Closed Variation: 3…a6 (the Morphy Defence) 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3, followed by the Chigorin manoeuvre 9…Na5 10.Bc2 c5 11.d4. White builds a big centre, Black erects a compact position and seeks counterplay on the queenside. Once the centre is closed with d5, each side plays on "its" wing: White on the kingside, Black on the queenside — one of the purest strategic duels in chess.
Black also has major alternatives: the Berlin Defence 3…Nf6 (the "Berlin Wall" popularised by Kramnik in the 2000 world championship match), famous for its endgame solidity, or the Marshall Attack, a dynamic gambit. White, for their part, can simplify with the Exchange Variation 4.Bxc6.
Who is the Spanish for? Players who enjoy strategy, long manoeuvring battles and lasting advantages. It demands more patience and chess culture than the Italian, but it rewards the investment: learning the Spanish means learning positional chess itself — structures, strong squares, pawn levers, piece redeployments. A toolkit that pays off in every other opening.
The main line, move by move
Every move is explained: play through them in order to understand the opening’s logic.
- 1. e4Occupies the centre and frees the bishop and queen.
- 1… e5Classic symmetrical response.
- 2. Nf3Attacks e5 and develops.
- 2… Nc6Defends the pawn and develops.
- 3. Bb5The Spanish move: attacking the defender of e5.
- 3… a6Morphy Defence: challenges the bishop.
- 4. Ba4The bishop maintains the pressure on the diagonal.
- 4… Nf6Development and attack on e4.
- 5. O-OCastle, preparing Re1 and d4.
- 5… Be7Closed variation: solid development.
- 6. Re1The rook defends e4 and activates the file.
- 6… b5Chases the bishop off the diagonal.
- 7. Bb3Retreat onto the a2-g8 diagonal.
- 7… d6Supports e5 and frees the c8 bishop.
- 8. c3Prepares d4 and a Bc2 retreat.
- 8… O-OBlack castles in turn.
- 9. h3Prevents Bg4, a prophylactic manoeuvre.
- 9… Na5Seeks to exchange the b3 bishop.
- 10. Bc2Avoids the exchange and keeps the bishop pair.
- 10… c5Typical central strike of the Chigorin.
- 11. d4Standard central reply.
- 11… Qc7Activates the queen on the open file.
- 12. Nbd2Nbd2-f1-g3 manoeuvre towards the kingside.
- 12… Nc6Knight returns to the centre.
- 13. d5Closes the centre and fixes the structure.
- 13… Nd8Nd8-f7 manoeuvre to support the kingside.
- 14. a4Gains space on the queenside.
- 14… Rb8Prepares the defence of b5.
- 15. axb5Opens the a-file for the rook.
- 15… axb5Pawn recapture.
- 16. Nf1Knight manoeuvre towards g3.
Plans for both sides
White’s plan
White’s plan in the Closed Spanish unfolds in three acts. Act one: construction. White plays c3 then d4 to build the big centre, while h3 prevents the …Bg4 pin that would hinder this push. The Spanish bishop follows its characteristic journey b5-a4-b3-c2: harassed by the black pawns, it retreats without ever leaving its working diagonals, and from c2 it supports e4 while eyeing Black’s kingside along the b1-h7 diagonal in the long term. Act two: closing and redeployment. The d5 advance fixes the centre and defines the zones of operation. Then begins the most famous manoeuvre of the opening: Nb1-d2-f1-g3 (or f1-e3), bringing the queen’s knight towards the ideal f5-square, right next to the black king. This apparently slow manoeuvre is possible precisely because the closed centre rules out any immediate counterplay. Act three: the attack. White prepares g4, Nh2 or Ng5, sometimes the f4 push, to open lines against the king. In parallel, the a4 lever questions the b5-chain: after axb5 axb5, the open a-file becomes a second front, and the a1-rook penetrates there. This double pressure — a kingside attack combined with queenside harassment — is the hallmark of the great Spanish players. The mindset matters as much as the moves: White’s advantage is modest but durable. One must neither rush nor allow Black to free their game with a well-timed …d5 or …f5. Every exchange must be weighed: keep the bishop pair (hence Bc2 against …Na5) and keep more active pieces on the board than your opponent.
Black’s plan
Black’s position in the Closed Spanish is compact, structurally sound, and contains several sources of counterplay. The first strategic reflex is the Chigorin manoeuvre: …Na5 exchanges or drives away the Spanish bishop, then …c5 and …Qc7 establish Black’s queenside pressure. After the centre closes with d5, the knight re-enters the game via …Nd8 or …Nb7, with f7 (supporting …f5 and watching g5) or c4 via b6 as its typical destinations. Black’s counterplay flows on two fronts. On the queenside, the b5-c5 chain can advance: …c4 gains space and fixes targets, …b4 strikes at c3. The rook on b8 supports these advances, and the a-file requires constant attention — after the axb5 axb5 exchange, Black must be ready to contest the open file. On the kingside, the …f5 push is the freeing resource par excellence: prepared by …g6 and by regrouping the knight to f7 or the bishop to g7, it challenges the white centre and turns defence into counterattack. The …g6 advance in fact serves several purposes: it prepares the …Bg7 fianchetto, takes the f5-square away from the white knight — neutralising the famous manoeuvre towards g3 — and shores up the king. It is one of the most valuable multi-purpose moves in Black’s repertoire. The psychological key: do not just sit and wait. Black’s position is slightly passive but perfectly healthy; it only deteriorates if Black lets White dictate play on both wings at once. Every white move on the kingside must be answered on the queenside, and the moment for the counter-break — …f5 or …c4 — must be awaited with patience.
Main variations
Berlin Defense
ECO C65Black plays Nf6 without a6, popularised by Kramnik.
Exchange Variation
ECO C68After 4.Bxc6, White simplifies and gains a structural advantage.
Steinitz Defense
ECO C62Frequent line: the 3…d6 reply (~23% at peer level). Engine-verified continuation.
Classical Variation
ECO C64Frequent line: the 3…Bc5 reply (~13% at peer level). Engine-verified continuation.
Morphy Defense, Caro Variation
ECO C70Frequent line: the 4…b5 reply (~22% at peer level). Engine-verified continuation.
Berlin Defense
ECO C66Frequent line: 3…Nf6, the 4…d6 reply (~27% at peer level). Engine-verified continuation.
Ruy Lopez: Morphy Defense
ECO C78Frequent line: the 5…b5 reply (~37% at peer level). Engine-verified continuation.
Closed
ECO C89Frequent line: the 7…O-O reply (~65% at peer level). Engine-verified continuation.
Traps to know
Noah’s Ark Trap
Move sequence : 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O b5 6. Bb3 d6 7. d4 Nxd4 8. Nxd4 exd4 9. Qxd4 c5 10. Qd5 Be6 11. Qc6+ Bd7 12. Qd5 c4
Black lures the White bishop to b3 via …b5, then plays …c5 followed by …c4 to permanently trap it. The bishop on b3 becomes imprisoned by Black’s pawn chain a6–b5–c4 — the so-called Noah’s Ark. White ends up losing a piece for three pawns.
Exchange Variation Trap
Move sequence : 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Bxc6 dxc6 5. Nxe5 Qd4 6. Nf3 Qxe4+ 7. Qe2 Qxe2+ 8. Kxe2 Bc5 9. d3 Bg4 10. Nbd2 O-O-O 11. Kf1 f6 12. b4 Bb6 13. a4 Ne7 14. a5 Ba7 15. Nc4 Nd5
In the Exchange Variation, if White plays too passively after the exchange on c6, Black executes a decisive fork with …Nd5, simultaneously attacking White’s knight on c4 and seizing key central squares while activating their pieces. Black’s doubled pawns on c6 are compensated by the activity of their pieces and the half-open files.
Mortimer Trap
Move sequence : 1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. d3 Ne7 5. Nxe5 c6 6. Ba4 Qa5+ 7. Nc3 Qxe5
In the Mortimer Defence, the apparently passive retreat …Ne7 sets an ambush: it no longer defends e5, and a greedy White plays Nxe5?. There follows …c6!, attacking the b5-bishop while opening the queen’s diagonal. After the Ba4 retreat, the check …Qa5+ creates a double attack on the king and the e5-knight: whatever the defence, the queen captures the knight next move and Black wins a clean piece. The lesson: a pawn "offered" by a strange-looking move almost always hides a tactical point.
Typical pawn structures
Closed Structure – Spanish Chain (fixed e4/e5 pawns)
The closed Spanish structure is defined by the fixed pawn tension on e4 and e5, locking the center. White’s bishop on b3 indirectly targets the e5 pawn through the knight on c6. The squares d5 and f5 are strong outposts for Black’s pieces, while White also targets d5 for piece occupation. With no immediate central tension, play naturally shifts to the wings. White directs play toward the kingside, preparing the f2-f4 lever after establishing d2-d4 to challenge e5. The typical knight maneuver Nb1-d2-f1-g3 or e3 reinforces e4 and sets up attacking possibilities. Reaching d5 with a well-placed piece is a key strategic goal. Black builds counterplay on the queenside with the ...b5-b4 lever, aiming to drive away the bishop on b3. The plan of ...d7-d6 followed by ...Nd7-f6 or ...Nd7-b6 consolidates e5 and contests the light squares. The ...f7-f5 advance is also available as a resource to generate kingside activity.
Structure after …d6 and …c5 – Open Spanish Complex
This structure, arising from the semi-open Spanish complex, features a tense center where the e4/e5 and d4/d5 pawns are in potential opposition. Black’s pawn on c5 pressures d4 and creates an asymmetric dynamic. The d4 square is a potential weakness for White, while Black must watch for the e4-e5 advance that could cramp the position. White aims to maintain central tension and to push e4-e5 at the right moment to gain space. The d4-d5 lever is also a possibility, fixing Black’s pawns and opening diagonals for the pieces. The kingside remains the natural area of attack if Black has not yet castled. Black should contest d4 with the ...c5xd4 exchange followed by ...d6-d5, aiming to seize central space. The maneuver ...Ne6-d4 targets the d4 square as an active outpost. Queenside counterplay with ...b7-b5 is another resource to generate complications and keep White’s pieces busy.
Common mistakes
Believing that 3.Bb5 wins the e5-pawn. The direct attempt 4.Bxc6 dxc6 5.Nxe5? gains nothing: 5…Qd4! forks the e5-knight and the e4-pawn, and Black regains the pawn with the bishop pair and the better position. This is THE fundamental tactical mechanism of the Spanish: the pressure on e5 only becomes real later, once White has played Re1 and neutralised the …Qd4 resource. The correct Exchange Variation continues with 5.O-O instead.
Delaying …b5 one move too long. Symmetrically, Black must know when the threat becomes real: after 3…a6 4.Ba4 Nf6 5.O-O Be7 6.Re1, immediate castling with 6…O-O?! allows 7.Bxc6 dxc6 8.Nxe5 — this time the …Qd4 fork no longer regains the pawn, because after 9.Nf3 the queen cannot take e4, which is defended by the rook. Hence the theoretical move order: 6…b5 first, castling second.
Recapturing on d4 with the queen into the Noah’s Ark Trap. After 3…a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 d6 7.d4 Nxd4 8.Nxd4 exd4, the greedy recapture 9.Qxd4?? runs into 9…c5! followed by …c4: the b3-bishop is buried alive by the a6-b5-c4 pawn chain and White loses a piece. Both sides should know this motif — White to avoid it (prefer c3, or another recapture), Black to provoke it.
Letting the white knight settle on f5. On the black side, ignoring the Nb1-d2-f1-g3 manoeuvre amounts to donating the f5-square: a knight established there, supported by the e4-pawn, paralyses the entire king’s defence. The prophylactic …g6, played at the right moment, removes that square for good. Waiting until the knight is already on f5 to react usually costs a far more serious weakening.
Trading the Spanish bishop without compensation. On the white side, meeting …Na5 by carelessly allowing the capture of the b3-bishop concedes the bishop pair and part of the pressure: the Bc2 retreat is almost always preferable. More generally, in a closed position dominated by manoeuvring, every minor-piece exchange must serve a concrete plan — simplifying "just to simplify" only relieves the more cramped side, which is Black.
Frequently asked questions
Why is the opening called the "Ruy Lopez"?
It is named after Ruy López de Segura, a 16th-century Spanish priest and chess player who analysed it in depth in his treatise published in 1561 — one of the very first chess books in history. That is also why it is interchangeably called the "Spanish Game". The opening existed before him, but his systematic work on 3.Bb5 attached his name to it forever. Nearly five centuries later, it remains at the heart of modern theory: few human ideas have enjoyed such longevity.
Is the Ruy Lopez suitable for beginners?
Yes, with one nuance. The first three moves perfectly follow the principles — centre, development, pressure — and a beginner can play it without harm. But the Spanish reveals its true value in the slow manoeuvring of the Closed Variation, which requires some positional maturity. Many coaches therefore recommend starting with the more direct Italian, then adopting the Spanish when you want to deepen your strategy. The essentials for starting out: know the …Qd4 mechanism (why 4.Bxc6 followed by 5.Nxe5 does not win a pawn) and the Noah’s Ark Trap.
How do you counter the Ruy Lopez as Black?
There are three main philosophies. The Closed Morphy Defence (3…a6 then …b5, …d6, …Be7) is the classical choice: solid, rich, but theoretically demanding. The Berlin Defence (3…Nf6) is reputed to be one of the most solid replies in chess — Kramnik used it to neutralise Kasparov in 2000 — at the price of dry endgames. Finally, aggressive players will pick the Marshall Attack (with the …d5 sacrifice) or the open lines with …Nxe4. For a club player, the classical Closed remains the best school: it teaches both wings, prophylaxis and the art of counterplay.
What is the point of 3.Bb5 if the bishop cannot actually win e5?
This is the pedagogical paradox of the Spanish: 3.Bb5 threatens nothing immediate (4.Bxc6 dxc6 5.Nxe5 fails to 5…Qd4), and yet it is one of the strongest moves in the position. Its value is strategic: it creates permanent tension against e5 that Black must manage for the entire game, with every white developing move (Re1, c3, d4) making the threat a little more real. Black is condemned to tiny concessions — …a6, …b5, …d6 — which give White lasting points of leverage. The Spanish thus teaches the concept of long-term pressure, as opposed to the immediate threat.
Results by rating level
Most-played lines (1600–1799 level)
- Steinitz Defensed627%52% wins (White)
- Morphy Defensea624%51% wins (White)
- Berlin DefenseNf616%52% wins (White)
- Classical VariationBc512%50% wins (White)
- Cozio DefenseNge76%52% wins (White)
- Bird VariationNd46%51% wins (White)
The percentage shows the move’s popularity (share of games that play it). White’s score stays near 50% because all of these lines are sound — popularity is what sets them apart.
Reference games
Step through each game at your own pace with the arrows — it opens at the end of the opening.
Caruana, Fabiano (2835) — Carlsen, Magnus (2863)Draw · 2020
Fabiano Caruana — the only player in recent history to push Carlsen to a tiebreak in a World Championship match (their 2018 title match ended with 12 consecutive classical draws!) — is back for more in this tense 2020 Nimzo-Indian. Carlsen, reigning World Champion, knows from experience that Caruana is one of the very few opponents capable of matching him move for move. A battle between two complete players, equally at home in positional grind or sharp tactical chaos.
Analyse this game →Carlsen, M. (2882) — Ding Liren (2805)Black wins (resignation, time or agreement) · 2019
Reigning World Champion Magnus Carlsen wields the Ruy Lopez — a centuries-old opening that remains a battleground at the highest level. His opponent, Ding Liren, had made history in 2018 by going unbeaten for 100 consecutive classical games, a remarkable streak. This 2019 encounter highlights the growing rivalry between the Norwegian champion and his Chinese challenger.
Analyse this game →Anand, V. (2804) — Carlsen, M. (2876)White wins (resignation, time or agreement) · 2015
Viswanathan Anand, the "Tiger of Madras", is a living chess legend: a five-time World Champion who dominated the game for over a decade with extraordinary calculation speed and intuition. By 2015, he was facing Carlsen — the very man who had dethroned him in 2013 — in this Ruy Lopez, a duel pitting the Indian veteran’s experience against the relentless Norwegian winning machine.
Analyse this game →Carlsen, Magnus (2862) — Aronian, Levon (2813)White wins (resignation, time or agreement) · 2013
In 2013, Magnus Carlsen was at the peak of his rise: he was about to become World Champion and held the highest ELO rating in history (2882). Facing him, Levon Aronian, the brilliant and imaginative Armenian grandmaster, was widely regarded as one of the most gifted chess artists of his generation. This Ruy Lopez brings together two of the most exciting players of their era.
Analyse this game →