Openings Intermediate

Ruy Lopez (Spanish Opening): Complete Guide

The Ruy Lopez (1.e4 e5 2.Nf3 Nc6 3.Bb5) is the most deeply analysed opening in chess history. Named after the 16th-century Spanish priest Ruy López de Segura, it has been the primary weapon of Fischer, Kasparov, Anand, Carlsen, and virtually every world champion who played 1.e4. If the Italian Game is a sprint, the Ruy Lopez is a marathon.

What is the Ruy Lopez?

After 3.Bb5, White doesn't target f7, White targets the defender of e5. The bishop pins (or threatens to capture) the knight on c6, which is the key protector of Black's e5 pawn. This creates long-term structural pressure without committing to an immediate tactical confrontation.

The Ruy Lopez's genius is its flexibility. White can play for a kingside attack, a central break with d4, or a slow positional squeeze, all from the same opening moves.

Main variations

The Morphy Defense (3...a6): Black's most popular reply. After 4.Ba4 Nf6 5.0-0 Be7 6.Re1 b5 7.Bb3 d6 8.c3 0-0, we reach the Closed Ruy Lopez, one of the most important structures in chess. White plays d4, Nbd2, Nf1-g3, aiming for a kingside attack.

The Berlin Defense (3...Nf6): The "Berlin Wall", after 4.0-0 Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8, the queens come off early and Black gets a solid (if slightly worse) endgame. Kramnik used this to dethrone Kasparov in 2000.

The Marshall Attack (3...a6 4.Ba4 Nf6 5.0-0 Be7 6.Re1 b5 7.Bb3 0-0 8.c3 d5!?): A brilliant gambit where Black sacrifices a pawn for a lasting attack on the White king. One of the most analysed positions in all of chess.

The Open Variation (3...a6 4.Ba4 Nf6 5.0-0 Nxe4): Black captures the e4 pawn immediately, leading to sharp tactical play. Less common at the top level but perfectly sound.

Main ideas for White

  1. Maintain the e4/d4 centre, this gives White space and piece activity.
  2. In the Closed Variation, the manoeuvre Nbd2-f1-g3 is thematic, the knight heads to g3 to support a f4 or h4 kingside push.
  3. The bishop on b3 (after Ba4-b3) exerts permanent pressure on the a2-g8 diagonal, especially the f7 square.
  4. Prophylaxis is essential, anticipate Black's ...d5 break and prepare for it before it happens.

Main ideas for Black

  1. Achieve the ...d5 break, this is Black's primary strategic goal in almost every Ruy Lopez variation. Once Black plays ...d5 successfully, the position equalises.
  2. In the Closed Variation, Black's plan is ...Re8, ...Bf8 (retreating the bishop to give the knight room), ...Nb8-d7, and then ...d5 or ...c5.
  3. The Marshall Attack (8...d5!?) is the most aggressive option, Black sacrifices a pawn for a powerful kingside initiative.
  4. In the Berlin endgame, Black's doubled c-pawns control the centre and the bishop pair compensates for the structural damage.

Typical pawn structures

The Closed Ruy Lopez creates one of chess's most important structures: White: e4, d4 vs Black: d6, e5. This structure favours White slightly because of the space advantage, but Black has a solid position and clear counterplay with ...d5 or ...f5. The space advantage is real but must be actively maintained.

After the d4-d5 break, a Benoni-style structure can arise: d5 vs d6+e5. Here, White has more space but Black has dynamic counterplay on the kingside. Understanding these structural transitions is the key to mastering the Ruy Lopez.

Famous games

  • Fischer vs Spassky, Game 6, 1972: Fischer's legendary Queen's Gambit was the headline, but his Ruy Lopez preparation throughout the match was masterful.
  • Kasparov vs Karpov, World Championship 1990: The Ruy Lopez was the central battlefield of their epic rivalry.
  • Caruana vs Carlsen, 2018 WCC: Multiple Ruy Lopez battlegrounds in the most closely fought world championship match in history.

Study these games in our legends database.

Training and next steps

  1. Learn the Closed Ruy Lopez main line to move 15.
  2. Study the Marshall Attack, even if you don't play it, you need to know the ideas to avoid it as White.
  3. Play the Ruy Lopez in games against the computer at increasing difficulty.
  4. Analyse your games, did you achieve d4? Did Black achieve ...d5? These two questions tell you who won the opening. Explore the Ruy Lopez in our opening explorer.
← All articles