Written by GM Mauricio Flores RiosGrandmaster and author of Chess Structures: A Grandmaster Guide

How to Play the Ruy Lopez (Spanish Opening)

The Ruy Lopez arises after 1.e4 e5 2.Nf3 Nc6 3.Bb5 — White develops the bishop to attack the knight that defends Black's e5 pawn. Named after the Spanish priest Ruy López de Segura, who analyzed it in 1561, it is also called the Spanish Opening, and it has been White's most principled answer to 1...e5 for over 150 years. As a grandmaster, I consider the Ruy Lopez the single best opening for learning how chess actually works: it teaches slow pressure, pawn play, and maneuvering in a way no gambit ever will.

The Moves and the Name

The move order is short enough to learn in one sitting: 1.e4 e5 2.Nf3 Nc6 3.Bb5 — White stakes a claim in the center, attacks e5 with the knight, then points the bishop at the one piece defending that pawn.

The name comes from Ruy López de Segura, a sixteenth-century priest from Zafra, Spain, who examined 3.Bb5 in his 1561 book on chess — one of the first serious opening treatises ever written. That is why most of the chess world outside English simply calls it the Spanish Opening (Española, Spanisch, Espagnole). You will also hear the phrase "Spanish torture," coined for the way White's pressure can drag on for forty moves without Black ever getting a moment of freedom. Both names describe the same experience from opposite sides of the board.

One point of housekeeping: 3.Bb5 is not a one-move threat. After 3...a6 4.Bxc6 dxc6 5.Nxe5, Black regains the pawn immediately with 5...Qd4, hitting both the knight and e4. The Ruy Lopez is not about winning e5 tomorrow — it is about making Black defend it forever.

The Point of 3.Bb5: The Slow Squeeze

Why do grandmasters rate 3.Bb5 above every alternative? Because it is the move that fights hardest for the center while conceding nothing. The knight on c6 is the only defender of e5, so the bishop's pressure is really pressure against Black's central pawn — and through it, against Black's entire setup. If Black ever becomes careless, White plays d4, and the threat of Bxc6 followed by captures on e5 gains strength with every developing move.

Compare the alternatives. 3.Bc4, the Italian Game, aims at f7 and often leads to faster contact, but it does not challenge e5 at all. 3.d4, the Scotch, resolves the central tension on move three and gives Black easy piece play. The Ruy Lopez does neither: it keeps every option open, builds the position brick by brick, and asks Black a new question every few moves. In my coaching I put it this way — the Italian is a conversation, the Spanish is an interrogation.

The strategic promise for White is concrete: castle quickly, prepare c3 and d4, build a full pawn center, and let Black spend the whole middlegame proving that e5 can hold. Black has excellent resources — this is why the opening is so rich — but every one of them requires precision.

The Main Road: The Closed Ruy Lopez

The classical main line runs 3...a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3, reaching the most famous tabiya in chess — a position that has appeared in world championship matches for a century. Both sides have developed sensibly; now the real game begins.

White's plan is the one I teach every student first: play d4, supported by c3, and build the big center. The move 9.h3 exists purely to prevent ...Bg4, which would pin the f3 knight and undermine d4's support. Then comes the signature Spanish maneuver: the b3 bishop drops back to c2 after ...Na5 or when attacked, and White lines up the queen behind it. That Spanish bishop on c2, paired with the queen on d3 or b1, forms a battery aimed straight at h7 — dormant for twenty moves, decisive on move forty. The other signature idea is the knight tour Nb1-d2-f1-g3 (or f1-e3), rerouting the queen's knight to the kingside where the attack will eventually land.

From the tabiya, Black chooses among the great classical systems, each named for its champion: the Chigorin with 9...Na5 10.Bc2 c5 11.d4 Qc7, grabbing queenside space; the Breyer with the astonishing retreat 9...Nb8, rerouting the knight to d7 where it defends e5 and supports ...c5; and the Zaitsev with 9...Bb7 10.d4 Re8, Karpov's favorite, putting maximum piece pressure on e4. I will not pretend to cover their theory here — each is a course of study in itself — but you should know the names, because they define the closed Spanish landscape. The full variation tree lives on our Ruy Lopez reference page.

Practical takeaway: as White, your first milestone is simply reaching this tabiya confidently and knowing your two plans — the d4 break and the f1-knight tour. That already puts you ahead of most club players.

The Berlin Defense: 3...Nf6

The Berlin, 3...Nf6, is the modern era's great equalizing attempt, and it deserves its own chapter in any honest Spanish guide. After 4.O-O Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8 the queens leave the board by move eight, and we reach the famous Berlin endgame: White has a healthy kingside pawn majority and Black's king has lost castling rights, but Black holds the bishop pair and a position with no weaknesses.

The history matters. In the London 2000 world championship match, Vladimir Kramnik used the Berlin as his shield against Garry Kasparov — the greatest attacking player of the age could not crack it in four attempts, and Kramnik took the title. Since then the "Berlin Wall" has been the elite's drawing weapon of choice against 1.e4, and White players at the top now often sidestep it with 4.d3, keeping queens on and playing a slower maneuvering game.

For club players my advice is unfashionable: do not fear the Berlin. The endgame that terrifies grandmasters is genuinely difficult for Black to hold at club level — the misplaced king and the passive knight punish imprecise play. If you learn the typical plans (advance the kingside majority, restrain Black's bishops), you will score well.

The Marshall Attack: Black's Famous Gambit

If the Berlin is Black's shield, the Marshall is Black's sword. After 3...a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O 8.c3 Black strikes with 8...d5!?, sacrificing a pawn outright: 9.exd5 Nxd5 10.Nxe5 Nxe5 11.Rxe5 c6, and Black follows with ...Bd6, ...Qh4, and a direct assault on White's kingside.

Frank Marshall unveiled the gambit against Capablanca in New York 1918 — reportedly after saving it for years — and although Capablanca defended brilliantly and won that game, the opening itself triumphed: more than a century of analysis has confirmed that Black's compensation is fully sound. The attack is so dangerous that most strong White players avoid it entirely with "anti-Marshall" moves like 8.a4 or 8.h3. That avoidance is itself a concession, and it tells you everything about the gambit's reputation.

If you play 1...e5 as Black and want a fighting weapon inside the Spanish, this is the one I recommend studying seriously — we teach the complete system, attacking ideas and all the critical lines, in our Marshall Attack course.

The Exchange Variation: 4.Bxc6

The Exchange Variation, 3...a6 4.Bxc6, changes the character of the game on move four. White gives up the bishop pair voluntarily, and after 4...dxc6 5.O-O the point is purely structural: Black now has doubled pawns on c6 and c7, which cripple the queenside majority. If every piece were traded off, White's healthy 4-versus-3 kingside pawn majority would produce a passed pawn, while Black's queenside majority could not. White is, in effect, playing an endgame from move five.

Bobby Fischer revived this "harmless" line at the 1966 Havana Olympiad, beating Portisch and Gligorić with it, and showed that 5.O-O (instead of the older 5.d4) keeps real winning chances: White will play d4 at a good moment, trade pieces on favorable terms, and grind the structure. Black's counterargument is the two bishops and free piece play — with queens on the board, Black is fine, which is why Fischer's move order avoids the early queen trade Black wants to force.

I have a soft spot for this variation because it is pure structure — the kind of position I wrote Chess Structures to explain. If you enjoy positions where the pawn skeleton dictates every plan, the Exchange Spanish is a complete education in itself.

Other Black Tries Worth Knowing

Three more defenses will cross your board regularly. The Open Spanish, 3...a6 4.Ba4 Nf6 5.O-O Nxe4 6.d4 b5 7.Bb3 d5 8.dxe5 Be6, grabs the e4 pawn and accepts a sharp, unbalanced fight — Korchnoi's lifelong weapon, active but demanding. The Schliemann, 3...f5!?, throws a gambit at White on move three; objectively risky, practically venomous against an unprepared opponent. And the old Steinitz setups with ...d6 (immediately, or after 3...a6 4.Ba4 d6) build a solid but slightly passive wall — sound, cramped, and exactly the kind of position White's slow squeeze was designed to torture.

As White, you do not need deep theory against any of these at club level: develop, castle, take the center when it is safe, and your position will play itself.

Typical Spanish Plans for Both Sides

Whatever variation you reach, the same strategic threads run through the whole opening — and knowing them is worth more than memorizing moves.

For White, the game revolves around the d4 pawn break. Timing is everything: play d4 too early and Black trades and frees the position; prepare it patiently with c3 and h3 and it comes with real force. After the break White chooses between keeping the tension, closing with d5 to grab space, or opening the position when better developed. Alongside it runs the knight maneuver Nb1-d2-f1-g3, the slow transfer that turns a quiet position into a kingside attack.

For Black, counterplay comes from the queenside and the center. The classical recipe is ...c5 and ...Qc7, reinforcing e5 and gaining space; the Zaitsev treatment puts the bishop on b7 and piles pressure on e4, ready for a timed ...d5 strike of Black's own. Black's dream is to make White's center a target rather than an asset.

Every one of these plans is really a pawn structure argument — where the breaks are, whose majority matters, which files open. That is why the Spanish rewards players who study structures rather than move sequences: the moves change every decade, the structures never do.

Who Should Play the Ruy Lopez?

Play the Ruy Lopez if you want the full classical education. No other opening teaches so many facets of chess at once: central tension, maneuvering, structural play, attack and defense on both wings, and endgames straight out of the opening. Every world champion from Steinitz to Carlsen has relied on it — it is not a style choice, it is core chess.

If you are earlier in your journey, the Italian Game is the natural lighter sibling: the same first two moves, similar classical ideas, far less theory. My honest sequencing for students is Italian first, Spanish soon after — usually within the first year or two of serious study.

And if you meet the Ruy Lopez as Black and want a reliable, complete answer, we built our Ruy Lopez counter course for exactly that: a coherent repertoire against the Spanish squeeze, chosen for club practicality rather than fashion.

Your Training Plan at ChessMind AI

Start by finding out where your real weaknesses are — take the GM diagnostic, because opening study only pays off on top of sound fundamentals. Then drill the Spanish move orders and plans against live feedback in our opening trainer until the tabiya positions feel like home. The closed Ruy generates more middlegame tactics than its quiet reputation suggests — pins on f3, sacrifices on f7 and h7 — so keep your pattern recognition sharp with daily tactics puzzles. Finally, after every Spanish game you play, run it through the analysis board and ask one question: did I time my pawn breaks correctly? That single review habit will teach you more about this opening than any book chapter.

Frequently Asked Questions

Why is it called the Ruy Lopez?

It is named after Ruy López de Segura, a Spanish priest from Zafra who analyzed 3.Bb5 in his 1561 chess treatise — one of the earliest opening books in history. Outside the English-speaking world the opening is usually just called the Spanish.

Is the Ruy Lopez better than the Italian Game?

Objectively they are close, but the Ruy Lopez asks Black harder questions: 3.Bb5 pressures the defender of e5, while 3.Bc4 does not challenge Black's center at all. The practical difference is workload — the Spanish carries far more theory. Strong players consider it White's most ambitious try after 1.e4 e5.

What is the Berlin Wall in chess?

It is the nickname for the Berlin Defense endgame (3...Nf6 4.O-O Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8), made famous when Kramnik used it to neutralize Kasparov in their 2000 world championship match. Queens come off by move eight, and Black's position, though slightly passive, is extremely hard to break down.

Should beginners play the Ruy Lopez?

Beginners should start with the Italian Game — same classical principles, much less theory — and graduate to the Ruy Lopez soon after, once they are comfortable with basic development and castling. There is no need to wait years: the closed Spanish plans are learnable one idea at a time, and they repay the effort for the rest of your chess life.

How do you pronounce Ruy Lopez?

"ROO-ee LO-peth" is the Castilian Spanish pronunciation; English speakers usually say "ROO-ee LO-pez," and both are accepted. Saying "the Spanish Opening" works everywhere.