Skip to content
chessenpai

Chess openings · ECO C60-C99

Ruy Lopez

The Ruy Lopez, also called the Spanish Opening, starts 1.e4 e5 2.Nf3 Nc6 3.Bb5. White attacks the knight that defends e5 and builds slow, lasting pressure on Black's center. It is named after the 16th-century Spanish priest Ruy Lopez de Segura and remains one of the most respected openings at every level.

Starting position.

Step 0 of 9

The main line, move by move

  1. 1. e4 e5 Both sides claim the center with their king pawns.
  2. 2. Nf3 Nc6 White attacks e5; Black defends with the knight.
  3. 3. Bb5 The Spanish bishop. It pressures the defender of e5.
  4. 3...a6 4. Ba4 The Morphy Defense. Taking on c6 now wins nothing, so White keeps the bishop.
  5. 4...Nf6 5. O-O Black hits e4, but White castles calmly because the pawn is indirectly protected.
  6. 5...Be7 6. Re1 Black prepares to castle. The rook now defends e4 for real.
  7. 6...b5 7. Bb3 Black gains queenside space; the bishop settles on b3, still aiming at f7.
  8. 7...d6 8. c3 O-O c3 prepares d4 and keeps a home for the bishop on c2.
  9. 9. h3 The Closed Ruy Lopez. h3 stops ...Bg4 before White plays d4.

Plans and ideas

For White

  • Build a strong center with c3 and d4, prepared by h3 so ...Bg4 cannot pin the knight.
  • Use the long maneuver Nbd2-f1-g3 to bring the knight toward the kingside.
  • Keep the bishop on b3 or c2, where it supports e4 and later a kingside attack.
  • Play a4 at the right moment to question Black's b5 pawn and open the a-file.
  • If the center closes with d5, attack on the kingside with Nh2, f4 or g4 ideas.

For Black

  • Hold the strong point e5 and develop with ...Be7, ...d6 and ...O-O.
  • Gain queenside space with ...b5, ...Na5 and ...c5 to challenge White's d4.
  • Use ...Re8, ...Bf8 and ...g6 setups to keep the kingside solid against slow maneuvers.
  • Choose the Marshall (...d5 gambit) or the Berlin if you want concrete play instead of a long squeeze.

Main variations of the Ruy Lopez

Closed Ruy Lopez (Chigorin)

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 Na5 10. Bc2 c5 11. d4 Qc7

The classical main line. Black kicks the bishop with ...Na5, gains space with ...c5 and supports e5 with the queen. Typical play is a long maneuvering game: White aims for Nbd2-f1-g3 and kingside chances, Black for queenside space.

Berlin Defense

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

Made famous when Kramnik used it against Kasparov in their 2000 world championship match. Queens come off early. Black has lost the right to castle and has doubled pawns, but owns the bishop pair and a very solid position that is hard to break.

Exchange Variation

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 Bg4 10. f3 Be6

White gives up the bishop to damage Black's pawn structure. White's healthy kingside majority can create a passed pawn in the endgame, while Black relies on the bishop pair and active pieces.

Open Variation

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 9. c3 Be7

Black grabs the e4 pawn and gives it back with an active, open position. Black's pieces are free, but the knight on e4 and the pawns on d5 and c7 can become targets after White plays Nbd2 and pressures the center.

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 12. d4 Bd6 13. Re1 Qh4 14. g3 Qh3

Frank Marshall's famous gambit. Black sacrifices a pawn for a fast attack against White's king. It is so well analyzed that many White players avoid it with 8.a4 or 8.h3 instead of 8.c3.

Common mistakes

  • Taking on c6 and then grabbing e5 too early: after 4.Bxc6 dxc6 5.Nxe5 Black regains the pawn with 5...Qd4.
  • As White, playing d4 before h3 and letting ...Bg4 pin the knight and pressure d4.
  • Forgetting that the b3 bishop can be trapped by ...c5 and ...c4 if White does not give it c2 in time.
  • As Black, playing an early ...Nd4 or ...Ng4 without preparation; these one-move ideas usually just lose time.
  • Putting pieces on natural squares without a plan; in the Closed Ruy both sides must know which pawn break they are playing for.

Traps in the Ruy Lopez

Who should play the Ruy Lopez?

The Ruy Lopez suits patient players who enjoy long strategic battles and are willing to learn theory. It rewards understanding of pawn structures and maneuvering more than quick tactics.

Do you already reach the Ruy Lopez in your games? Find out which openings you play and how they go for you, then drill the lines you keep getting wrong.

Questions about the Ruy Lopez

Is the Ruy Lopez good for beginners?
It is playable, but the ideas are subtle and the theory is long. Many coaches start beginners with the Italian Game and move to the Ruy Lopez once they understand central pawn breaks and piece maneuvers.
What is the main line of the Ruy Lopez?
The Closed Ruy Lopez: 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. From here Black chooses between systems like the Chigorin (9...Na5), the Breyer (9...Nb8) and the Zaitsev (9...Bb7).
How do you play against the Ruy Lopez as Black?
The Morphy Defense with 3...a6 is the most popular choice and leads to rich middlegames. If you want something more solid, the Berlin Defense with 3...Nf6 is very hard to beat, and the Marshall Attack suits players who like to attack.
Why is the Ruy Lopez called the Spanish Opening?
It is named after Ruy Lopez de Segura, a Spanish priest who analyzed it in the 16th century. Outside English-speaking countries it is usually called the Spanish Game.
Why does Black play 3...a6 in the Ruy Lopez?
It asks the bishop a question at once. White cannot win a pawn with Bxc6 and Nxe5 because of ...Qd4, so the bishop usually retreats to a4. Later Black can gain space with ...b5 when it suits them.

Try any line yourself on the analysis board, or check how your own games in this opening went with the free game review.

Related openings