← chessply

Ruy Lopez

Opening theory explained, with a real annotated example game. · Wikipedia ↗

Open a variation for a deep dive: a big board with its moves ready to step through, and your tutor beside you to talk it over.

  1. The big picture

    Overview

    The Ruy Lopez, also called the Spanish Game, is one of the oldest and most respected of all chess openings, built around the simple-looking move where White's bishop travels to b5 to pressure the knight that defends Black's e5 pawn. It is fundamentally a classical, strategic opening rather than a gambit, though many of its branches can turn extremely sharp, and White's long-range goal is to build a lasting space advantage in the center and on the queenside while keeping options open for a kingside attack. It is worth knowing because nearly every major World Champion has used it from both sides, and its many named branches teach the core strategic themes of the entire open-game family.

  2. Variation 1

    Closed Ruy Lopez (Main Line)

    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

    In the Closed Ruy Lopez, White declines to resolve the central tension immediately and instead retreats the bishop to b3 after Black plays pawn to a6 and pawn to b5, keeping the bishop aimed at Black's king while preparing a broad pawn center with pawn to c3 and a later pawn to d4. White's move pawn to h3 is a quiet but essential prophylactic idea, ruling out an annoying pin from a bishop coming to g4 before White's own pieces are organized. Black, for its part, uses the tempo gained from pushing the queenside pawns to gain genuine space on that wing and then settles the center with pawn to d6, keeping the e5 pawn solidly defended. From this position both sides maneuver for many moves: White typically regroups a knight from b1 through d2 and f1 to g3 or e3, aiming at the kingside squares f5 and d5, while Black commonly chooses one of several famous regrouping schemes, such as the Breyer Variation where the knight retreats from c6 all the way back to b8 before rerouting to d7, freeing the c-pawn and re-coordinating the pieces for a slow central or queenside battle. White's follow-up initiative often comes from eventually breaking with pawn to d4 or pushing on the kingside with pawn to g4 once pieces are regrouped, while Black looks for timely counterplay with moves like pawn to d5 or piece pressure against White's center. What distinguishes this branch from the others is precisely its patience: rather than resolving the center quickly, both sides accept a long strategic maneuvering battle where small positional advantages accumulate over dozens of moves.

  3. Variation 2

    Berlin Defense

    1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6

    The Berlin Defense is Black's most solid reply to the Ruy Lopez, counterattacking the e4 pawn immediately instead of first defending e5 or expanding with pawn to a6. White's most testing continuation leads to an early queen trade, after which Black's king moves voluntarily toward the center but the resulting endgame is famously resilient rather than dangerous for Black, since Black's bishop pair and healthy structure compensate for the lost castling rights. White's long-term plan in this endgame is to use extra central space and the slightly more active minor pieces to squeeze small advantages over many moves, often fixing Black's doubled pawns or probing on the kingside where Black's king has settled. Black's follow-up plan is largely defensive but active: trading pieces toward a simplified position, activating the king in the endgame once it is safe to do so, and using the bishop pair to create counterplay against any overextension by White. Because this endgame is so difficult to crack, many players avoid the trade altogether and instead choose quieter fifth-move alternatives that keep queens on the board, leading to a more typical middlegame battle. What makes the Berlin distinct is that it shifts the entire fight away from king safety concerns and into a pure endgame and structural battle, which is why it became a favored defensive weapon at the highest levels.

  4. Variation 3

    Exchange Variation

    1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6

    In the Exchange Variation, White voluntarily gives up the bishop pair by capturing on c6, accepting that Black will recapture with the d-pawn and obtain doubled pawns on the c-file in exchange for the bishop pair and open lines for development. White's long-term strategic plan is to steer the game toward simplified positions and eventually an endgame, since Black's doubled c-pawns can become a long-term weakness once most of the pieces are traded off, while White's own kingside pawn majority can produce a protected passed pawn in a pure pawn ending. A typical follow-up for White is to meet Black's central pawn on e5 with an eventual pawn to d4 trade, simplify the position, and head toward a favorable minor-piece or pawn endgame where the extra kingside pawn majority tells. Black's compensating plan is to use the two bishops actively in the middlegame, often developing with a bishop to g4 or e6, doubling rooks on the d-file, and seeking dynamic piece play before the position simplifies too far. A well-known practical nuance is that Black sometimes delays castling and instead keeps the king in the center longer than normal, since there is no safe open file for White's pieces to exploit against it. This branch is distinct from the others because it is the one case in mainline Ruy Lopez theory where White deliberately surrenders the bishop pair early for a structural, rather than tactical or spatial, long-term edge.

  5. Variation 4

    Open Ruy Lopez

    1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4

    The Open Variation begins when Black captures the e4 pawn with the knight at a moment when White's bishop sits on a4 rather than defending that pawn directly, immediately opening the center and inviting sharper, more tactical play than the Closed systems. White's typical plan afterward is to strike back in the center with an early pawn to d4, challenging Black's extended knight and aiming to prove that the temporarily displaced piece has cost Black valuable time, a classic tempo-based argument in the center. Black's long-term idea is to use the time spent on that central skirmish to build an active pawn duo, commonly supporting the knight and gaining space with a further central pawn push, while developing the pieces harmoniously around that advanced structure. In many lines Black's knight eventually retreats to a central square and the position opens into tactical middlegames where both sides' pieces are unusually active for a Ruy Lopez structure. White, for its part, often targets the slightly loosened Black kingside or central pawns with piece pressure rather than slow maneuvering, making this one of the more concretely tactical branches of the whole opening. What sets the Open Variation apart from the Closed Main Line is this immediate resolution of central tension, trading long-term strategic maneuvering for sharper, faster-developing piece play.

  6. Variation 5

    Marshall Attack

    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

    The Marshall Attack is Black's famous pawn sacrifice within the Closed Ruy Lopez structure, where instead of the slow maneuvering plan Black suddenly breaks open the center with a pawn push to d5, offering a pawn for rapid development and lasting initiative.

Questions about the Ruy Lopez

What is the Ruy Lopez?

The Ruy Lopez is a chess opening that begins 1.e4 e5 2.Nf3 Nc6 3.Bb5. White develops the bishop to b5, attacking the knight that defends Black's e-pawn. It is also called the Spanish Opening or the Spanish Game.

How do you play against the Ruy Lopez?

As Black, the Morphy Defense, 3...a6, is the most popular reply to 3.Bb5. After 4.Ba4, Black's usual response is 4...Nf6.

What are the first moves of the Ruy Lopez?

The Ruy Lopez starts 1.e4 e5 2.Nf3 Nc6 3.Bb5. White plays pawn to e4, Black answers pawn to e5, White plays knight to f3, Black answers knight to c6, and White plays bishop to b5.

Why is it called the Ruy Lopez?

It is named after Ruy López de Segura, a 16th-century Spanish priest who studied it and other openings in the chess book Libro del Axedrez, written in 1561. The priest was not its originator: the move became popular later and was named after the priest.

Is the Ruy Lopez still played at the top level?

Yes. It is still regularly played in top-level competition, and its theory is the most extensively developed of all Open Games, with some lines analysed well beyond move thirty.

Is the Ruy Lopez an opening for White or Black?

The Ruy Lopez is White's opening: White is the side that chooses it. The line that defines it is 1.e4 e5 2.Nf3 Nc6 3.Bb5.

What variations of the Ruy Lopez does the deep dive cover?

chessply's deep dive on the Ruy Lopez steps through 5 lines: Closed Ruy Lopez (Main Line), Berlin Defense, Exchange Variation, Open Ruy Lopez and Marshall Attack.

Recent recaps featuring this opening
2026-11-15Loss2026-11-13Loss2026-11-06Loss2026-11-05Win2026-10-31Win2026-10-20Win2026-10-19Win2026-10-17Win

Keep watching

More Shorts and lessons that go with this opening. They play right here.

Explore other openings
Alekhine Defense
Anderssen's Opening
Benoni Defense
Bird Opening
Bishop's Opening
Bogo-Indian Defense
Caro-Kann Defense
Center Game
Center Game Accepted
Colle System
Creepy Crawly Formation
Danish Gambit
Dutch Defense
English Opening
Englund Gambit
French Defense
Grob Opening
Grünfeld Defense
Indian Defense
Italian Game
King's Indian Attack
King's Indian Defense
King's Pawn Opening
London System
Mieses Opening
Modern Defense
Nimzo-Indian Defense
Nimzowitsch Defense
Old Indian Defense
Owen Defense
Petrov's Defense
Philidor Defense
Pirc Defense
Queen's Gambit
Queen's Gambit Accepted
Queen's Indian Defense
Queen's Pawn Game
Richter-Veresov Attack
Scandinavian Defense
Scotch Game
Semi-Slav Defense
Sicilian Defense
Slav Defense
Torre Attack
See all openings →

Want a recap like this for your own games?