How to Play the Ruy Lopez (Spanish Opening)
The Ruy López is one of the most important openings in chess history — played by every world champion. Here's how to understand and play it, as White and as Black.
TL;DR — Quick Answer
- Moves: 1. e4 e5 2. Nf3 Nc6 3. Bb5 (the Spanish Opening)
- White's idea: Pressure the e5-pawn indirectly by threatening to remove its defender (Nc6)
- Main Black defenses: Morphy Defense (3...a6), Berlin (3...Nf6), Marshall Attack
- White's long-term plan: c3 + d4 — the central bind known as “Spanish Torture”
- Best for: Intermediate players and up (1200+); Italian Game is easier for beginners
What Is the Ruy López?
The Ruy López (also called the Spanish Opening or Spanish Game) is a chess opening beginning with:
1. e4 e5 2. Nf3 Nc6 3. Bb5
Named after 16th-century Spanish priest Ruy López de Segura, it has been played at the highest level for over 500 years. Every world chess champion — from Morphy to Kasparov to Magnus Carlsen — has played the Ruy López with both colors.
The key insight: White's bishop on b5 does not directly attack e5. It attacks the knight on c6 — the piece defending e5. This forces Black to respond carefully or risk losing the e5-pawn for nothing.
After 3...a6, White can retreat the bishop to a4 (4.Ba4) or exchange it (4.Bxc6). Most high-level games continue 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O 8.c3 — the Closed Ruy López, one of the most deeply analyzed positions in all of chess.
Main Variations for Black
Black has several well-tested responses. Each leads to a completely different type of game:
Morphy Defense
3...a6
Black challenges the bishop immediately. The mainline of the Ruy López — leads to the Closed Defense or the Open Defense.
Berlin Defense
3...Nf6
The "Berlin Wall." After 4.O-O Nxe4 5.d4, an endgame arises that is dry but extremely solid. Used by Kramnik to beat Kasparov in 2000.
Marshall Attack
8...d5 (pawn sacrifice)
Black sacrifices the e-pawn for a ferocious kingside attack. One of the most analyzed opening sacrifices in history.
Exchange Variation
4. Bxc6
White trades the bishop for the knight immediately, doubling Black's pawns. Gives White a long-term endgame advantage but concedes the bishop pair.
Recommendation for Black: If you want complexity and counterplay, learn the Morphy Defense (3...a6). If you want rock-solid draws, study the Berlin. If you want to ambush your opponent, prepare the Marshall Attack.
The Closed Ruy López — White's Main System
The most important position in the Ruy López arises after:
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 d6
This is the Closed Ruy López starting position. White has:
- A strong bishop on b3, eyeing the f7-pawn
- The rook on e1, overprotecting e4 and preparing d4
- A pawn on c3, preparing the d4 central advance
White's next major plan is d4 — challenging Black's center pawn and gaining central space. Black can exchange (exd4 cxd4) leading to open play, or hold the tension with ...Nb8-d7 planning ...Nf8-g6 or ...Nf8-e6 to support e5. These knight maneuvers are the hallmark of Closed Ruy López play.
Key Strategic Themes
The Ruy López rewards players who understand the strategic ideas behind every move. Here are the four most important concepts:
The bishop on b5 (or a4) — indirect pressure
The bishop does not directly attack e5. Instead it threatens to eliminate the knight on c6 — the piece defending the e5-pawn. Black must react or allow White to win the pawn "for free." This forces Black to make early concessions: ...a6 costs a tempo, and ...b5 weakens the queenside.
White's central bind: c3 + d4
In the Closed Ruy López, White's long-term plan is to play c3 followed by d4 — challenging the center and gaining space. This creates the "Spanish Torture": White squeezes Black slowly, gaining small advantages that compound over 40 moves. There is rarely a knockout blow — just relentless positional pressure.
The weak d6-pawn theme
In many lines, Black is forced to support the e5-pawn by playing ...d6. This stabilizes the center but gives White a positional target. White can aim to fix and attack the d6-pawn with pieces or advance in the center, putting Black on the defensive for the entire game.
Rook activity after castling
After 5.O-O, White often plays Re1 to overprotect e4 and prepare d4. This rook-to-e1 maneuver is one of the most useful moves in the entire opening — it pressures the center, clears the back rank, and prepares e4-e5 breaks in some lines.
The Berlin Defense — “The Berlin Wall”
One of the most famous modern defenses in all of chess. After:
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
Black allows queens to be traded early, reaching an endgame with a slightly awkward king on d8. It seems bad — but this endgame is incredibly difficult to crack. Vladimir Kramnik used the Berlin to win the 2000 World Championship against Garry Kasparov without losing a single game. After that match, the Berlin became the most important endgame study in professional chess.
For club players: the Berlin is extremely solid but passive. If you want to fight for the win as Black, the Morphy Defense or Marshall Attack are better choices.
The Marshall Attack — Black's Sharpest Option
The Marshall Attack is a prepared pawn sacrifice played after the Closed Ruy López mainline:
8. c3 d5 (the Marshall Gambit)
Black offers the e5-pawn for a wave of attacking pieces on the kingside. After 9.exd5 Nxd5 10.Nxe5 Nxe5 11.Rxe5 c6, Black gets incredible activity for the pawn. White must play precisely or get mated.
The Marshall Attack requires memorization — but the ideas are intuitive if you understand the theme. Black sacrifices material for time and activity. White needs to return some material and reach a defensible position. It's been analyzed to a draw with perfect play, but it is still played at the highest level because the positions are incredibly complex in practice.
Note for White: Many White players avoid the Marshall by playing 8.a4 (the Anti-Marshall) instead of 8.c3. This sidesteps the prepared preparation and leads to different kinds of positions. The Anti-Marshall is a valid option if you don't want to learn the Marshall theory.
How to Learn the Ruy López (Step by Step)
- Learn the first 8 moves of the Closed Ruy López. Know them fluently — this is the trunk of the tree. Every major variation branches off from this sequence. You can play the Ruy López effectively at club level knowing only the Closed variation.
- Understand the plan before memorizing moves. White wants: bishop to b3 or a2, c3, d4, and active rooks. Black wants: ...Nb8-d7-f8-g6 or e6, support for e5, queenside counterplay with ...a5 or ...c5. If you know the plans, you can handle deviations.
- Pick one Black defense and study it deeply. Choose either the Morphy Defense (most practical) or the Berlin (most solid). Don't try to learn both at the start — get 50 games in with one before branching out.
- Analyze your Ruy López games after every session. Export your PGN and paste it into chess.rodeo for free Stockfish analysis. Identify exactly where you deviated from the main lines and what the best continuation was — no account required.
Ruy López vs Italian Game — Which Should You Play?
Both openings begin 1.e4 e5 2.Nf3 Nc6 — they diverge on move 3 (3.Bb5 Ruy López vs 3.Bc4 Italian). Here's how to choose:
Play the Italian Game if:
- You are under 1400 and want direct, attacking play
- You prefer tactical positions with kingside attacks
- You want to avoid heavy theory in early games
Play the Ruy López if:
- You are 1200+ and want to develop as a positional player
- You enjoy squeezing opponents slowly (the “Spanish Torture”)
- You want to play the opening used by every world champion and build a lifetime repertoire
Both are excellent choices. Most players who start with the Italian eventually migrate to the Ruy López as they develop positional understanding. The concepts transfer — you're not wasting time studying either opening.
Frequently Asked Questions
What is the Ruy López opening?
The Ruy López (Spanish Opening) is a chess opening beginning 1.e4 e5 2.Nf3 Nc6 3.Bb5. White's bishop goes to b5 to threaten Black's knight on c6 — the piece defending the e5-pawn. It's named after 16th-century Spanish priest Ruy López de Segura and has been played by every world champion.
Why is the Ruy López called “Spanish Torture”?
The nickname comes from White's strategy of slow, relentless positional pressure over 40+ moves. Rather than attacking directly, White squeezes Black's position with small advantages: the c3-d4 central bind, the bishop's diagonal pressure, and constant maneuvering. Black is forced to defend precisely for the entire game — hence the “torture.”
What is the best defense against the Ruy López?
The Morphy Defense (3...a6) is the most popular and leads to rich, complex play. The Berlin Defense (3...Nf6) is the most solid choice at the elite level. The Marshall Attack is the sharpest, sacrificing a pawn for kingside play.
Is the Ruy López good for beginners?
The Ruy López can be played at any level, but it rewards strategic understanding more than pure tactics. Most coaches recommend the Italian Game for complete beginners because the attacking ideas are more intuitive. Once you're comfortable with open game principles (around 1200 rating), the Ruy López is an excellent long-term choice.
Analyze your Ruy López games — free
Paste any PGN into chess.rodeo for full Stockfish analysis. See exactly where you deviated from the main lines and what the best move was — no account, no paywall.