Ruy Lopez

1.e4 e5 2.Nf3 Nc6 3.Bb5

ECO C60

The Ruy Lopez is a chess opening reached after 1.e4 e5 2.Nf3 Nc6 3.Bb5, catalogued under code C60 in the Encyclopaedia of Chess Openings (ECO).

The defining move Bb5 is chosen by White on move 3.

38 named continuations branch from this position, including the Alapin Defense and the Brentano Gambit.

What is the Ruy Lopez?

The Ruy Lopez, also called the Spanish Game, is a chess opening that begins 1.e4 e5 2.Nf3 Nc6 3.Bb5. White pins the knight that defends e5 and prepares a long-term siege of Black's center, delaying any direct clash until every piece is developed. It is the most important of the Open Games and, for over a century, the opening by which strong players have been judged.

Its depth is the point. The Ruy Lopez is not a trap or a quick attack but a slow argument about the center: White plays c3 and d4 to press against e5, Black holds the center with ...d6 and counterattacks on the queenside with ...a6, ...b5 and ...Na5. From that argument grew the Closed Spanish, the Chigorin and Breyer systems, the Marshall Attack, the Berlin Defense and dozens of others, each with its own literature. It rewards understanding more than any other opening.

How to reach the Ruy Lopez

After 1.e4 e5 2.Nf3 Nc6 White plays 3.Bb5. The main line continues 3...a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3, the Closed Ruy Lopez, from which Black chooses the Chigorin (9...Na5), Breyer (9...Nb8) or Zaitsev (9...Bb7) systems. Black's main alternatives are 3...Nf6, the Berlin Defense, the Open Variation with 5...Nxe4, the Marshall Attack with 7...O-O and 8...d5, and the Schliemann 3...f5. White can also trade bishop for knight at once with 4.Bxc6, the Exchange Variation.

Pros and cons of the Ruy Lopez

Pros

Cons

Main variations of the Ruy Lopez

Ruy Lopez: Closed Variation, main line (9.h3)

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 tabiya of the opening. White has castled, secured the bishop on b3 and prepared d4; Black has castled, gained space with ...b5 and supported e5 with ...d6. The next move defines the system: 9...Na5 (Chigorin) attacks the bishop and plays for ...c5, 9...Nb8 (Breyer) reroutes the knight to d7, and 9...Bb7 (Zaitsev) pressures e4. All lead to the deepest strategic battles in chess.

Ruy Lopez: Berlin Defense (3...Nf6)

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 challenges e4 at once, and the main line leads to the famous Berlin endgame: queens off by move eight, White with a kingside pawn majority and a safer king, Black with the bishop pair and a solid structure. Kramnik used it to dethrone Kasparov in 2000, and it remains the most reliable drawing weapon at the top; White often avoids it with 4.d3, the anti-Berlin.

Ruy Lopez: Marshall Attack (8...d5)

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 kingside initiative: ...Bd6, ...Qh4 and ...Bg4 follow, and White's extra pawn is worth little while the attack lasts. Frank Marshall unveiled it against Capablanca in 1918 and lost, but the gambit was later shown to be fully sound and is now a mainstay of elite repertoires. Most White players avoid it with 8.a4 or 8.h3, the anti-Marshall lines.

Ruy Lopez: Exchange Variation (4.Bxc6)

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O f6 6.d4 exd4 7.Nxd4 c5 8.Nb3 Qxd1 9.Rxd1

White trades the bishop for the knight immediately, damaging Black's pawns and playing for a favorable endgame: after the queens come off, White's kingside majority can create a passed pawn while Black's doubled c-pawns cannot. Lasker and Fischer won famous games with it. Black relies on the bishop pair and active piece play, and the modern verdict is equal but unbalanced.

Ruy Lopez: Open Variation (5...Nxe4)

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 the e-pawn and returns it for free development and an active knight on e4. The play is far livelier than the Closed lines: Black has a queenside pawn majority and open diagonals, White has a strong pawn on e5 and chances against the e4-knight. Korchnoi and Anand championed it, and the resulting positions are among the most tactical in the whole Spanish.

Ruy Lopez: Schliemann Defense (3...f5)

1.e4 e5 2.Nf3 Nc6 3.Bb5 f5 4.Nc3 fxe4 5.Nxe4 d5 6.Nxe5 dxe4 7.Nxc6 Qg5

Black strikes at e4 with the f-pawn on move three, in the spirit of the King's Gambit reversed. It is a genuine attempt to seize the initiative and a dangerous surprise weapon, but White's 4.Nc3 line gives a lasting edge with accurate play. Recommended for players who want a Ruy Lopez fight on their own terms rather than White's.

How to play against the Ruy Lopez

Black's soundest choices are the Berlin Defense and the Closed main lines. The Berlin, 3...Nf6, is the most reliable, and Black must be comfortable in the queenless endgame and know the 4.d3 anti-Berlin setups. In the Closed Spanish the key is the queenside counterplay: ...a6, ...b5 and ...Na5 or ...Nb8-d7, with ...c5 as the central break, and patience while White maneuvers. The Marshall Attack is the ambitious option, a pawn sacrifice for a kingside initiative that White usually avoids. The Open Variation and the Schliemann suit players who want tactics. In all cases, do not fear 4.Bxc6: the bishop pair fully compensates the doubled pawns, and ...f6 with ...Bg4 or ...Be6 is a comfortable setup.

Plans for both sides

White's plan

Keep the bishop on the a2-g8 diagonal, prepare d4 with c3, and reroute the queen's knight via d2 and f1 to g3 or e3. Use a4 to undermine the b5-pawn and gain the a-file, and choose the moment for d5 or dxe5 by the position of Black's knights. Play against the c5-square in the Chigorin and against the d6-pawn after a central exchange.

Black's plan

Hold the center with ...d6 and ...e5, gain queenside space with ...a6 and ...b5, and use the c-file for counterplay with ...c5 and ...Qc7. Reroute the knights to the best squares, c4 or d7 and f8, and keep the light-squared bishop on the long diagonal from b7. Trade White's Spanish bishop with ...Na5 or ...Be6 whenever the position allows.

History of the Ruy Lopez

The opening is named after Ruy López de Segura, a Spanish priest who analyzed it in his 1561 book, though it was already known from the Göttingen manuscript of the fifteenth century. Steinitz made it a serious weapon in the 1880s, Tarrasch and Lasker refined it, and Capablanca, Alekhine and Fischer all built their 1.e4 repertoires around it. Chigorin, Breyer, Zaitsev and Marshall gave their names to the main defenses; Kramnik's Berlin Wall against Kasparov in 2000 reshaped elite practice and led White players toward the slower 4.d3 systems. It has appeared in nearly every world championship match since 1886 and remains the standard by which 1.e4 e5 theory is measured.

Ruy Lopez FAQ

Is the Ruy Lopez a good opening?

It is the most respected opening after 1.e4 e5, played in nearly every world championship of the modern era. It gives White a durable initiative and gives Black many sound defenses, which is why it is called the touchstone of chess understanding.

Why is it called the Ruy Lopez?

It is named after Ruy López de Segura, a sixteenth-century Spanish priest and one of the strongest players of his time, who analyzed 3.Bb5 in his 1561 treatise. In many languages it is simply the Spanish Game.

Is the Ruy Lopez for White or Black?

It is White's opening: the defining move is 3.Bb5. Black's responses, such as the Berlin, the Marshall or the Closed defenses, are systems within the Ruy Lopez.

Why is the Ruy Lopez so popular?

Because it keeps the central tension and gives White a lasting, flexible pull without early risk. Its plans are logical, its structures teach the middlegame, and a century of analysis has confirmed that it is the hardest opening for Black to equalize against.

What is the best defense against the Ruy Lopez?

At the top level the Berlin Defense 3...Nf6 is the most reliable, and the Closed main lines with the Chigorin, Breyer or Zaitsev systems are equally sound. The Marshall Attack is the most ambitious choice, and club players often do well with the Open Variation.

Named variations

Study this line with a grandmaster

This position is covered in the Beat the Ruy Lopez course: a GM-authored repertoire you study move by move, then practice against a human-like AI opponent.

Every chess term used here is defined in the chess terms glossary. Browse all opening courses or the full ECO code index.