Chess Openings

Spanish Defence (Ruy Lopez)

The Spanish Defence, better known as the Ruy Lopez (1.e4 e5 2.Nf3 Nc6 3.Bb5): main ideas, key variations, how to play it as White, and how Black can respond.

On this page
  1. What is the Spanish Defence (Ruy Lopez)?
  2. The idea behind 3.Bb5
  3. Main lines
  4. How to play the Ruy Lopez as White
  5. How Black can respond
  6. Is it good for beginners?

What is the Spanish Defence (Ruy Lopez)?

The Ruy Lopez, also called the Spanish Game or Spanish Opening, is one of the oldest and most studied chess openings. The phrase “Spanish Defence” is common in searches, but the opening is really played by White, so “Spanish Opening” or “Ruy Lopez” is more accurate. It is named after Ruy López de Segura, a 16th-century Spanish priest who wrote an early book on chess.

It starts like this:

  1. e4 e5
  2. Nf3 Nc6
  3. Bb5

The idea behind 3.Bb5

The bishop on b5 attacks the knight on c6. That knight defends the e5 pawn, so the bishop puts indirect pressure on e5. White is not threatening to win a pawn immediately, because after Bxc6 dxc6 Nxe5 Black can often regain it with …Qd4 or …Qg5. The opening is about long-term pressure, development, and a flexible pawn center, not a quick tactical strike.

Compared with the Italian Game, which aims bishop and knights at f7, the Ruy Lopez usually leads to a slower maneuvering game.

Main lines

3…a6 (Morphy Defence). The most common reply. Black asks the bishop what it wants to do. After 4.Ba4 Nf6 5.O-O, Black can play 5…Be7, which leads to the Closed Ruy Lopez with 6.Re1 b5 7.Bb3 d6 8.c3 O-O.

Marshall Attack. From the Closed Ruy Lopez, Black can sacrifice a pawn with …d5 (7…O-O 8.c3 d5) for a strong initiative. Some White players avoid it with an “Anti-Marshall” setup.

3…Nf6 (Berlin Defence). After 4.O-O Nxe4 and the main follow-up 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5, queens often come off early. It is solid and hard to break down, and it became widely known after Vladimir Kramnik used it against Garry Kasparov in their 2000 world championship match.

Exchange Variation (4.Bxc6). After 3…a6, White can trade the bishop for the knight immediately, damaging Black’s pawn structure for the endgame.

Other replies. Black may also try 3…Bc5 (Classical Defence), 3…d6 (Steinitz Defence) or 3…f5 (Schliemann Gambit). Those are less common at top level, but they are worth recognizing.

How to play the Ruy Lopez as White

A reasonable outline:

  1. Develop with e4, Nf3, Bb5, then castle kingside early.
  2. Support the center with c3 and d4.
  3. Keep tension and pressure on e5, and use the bishop’s retreat squares (a4, b3, c2) as needed.
  4. Be ready for typical plans, such as the knight maneuver Nbd2-f1-g3 in closed positions.

Because there is a lot of theory, aim to learn the ideas first. The same pawn structures come up again and again.

How Black can respond

If you are Black and want a straightforward approach, the Morphy Defence (3…a6) followed by …Nf6 and …Be7 is a reliable setup. The Berlin Defence is another solid option. Choosing between them often comes down to whether you want a complex middlegame or an endgame-style game.

If you face the Ruy Lopez and don’t know theory, stick to development, castle, and keep your center pawns protected, the same habits taught in basic chess strategy for beginners. Compare that approach with the sharper counterattacking style of the Sicilian Defence, which Black chooses against 1.e4 instead of 1…e5.

Is it good for beginners?

It can be, but the number of established lines makes it a steeper memorization task than some other openings. The strategic ideas, however, teach a lot about pawn structure and piece placement. Players interested in how to go beyond these basics can read our guide to advanced chess openings.

The complete guide to chess openings

Advanced Chess Openings
Read the guide

Keep exploring

Guides from other topics

All topics →