Quick answer: The Ruy Lopez starts 1.e4 e5 2.Nf3 Nc6 3.Bb5. Your bishop hits the knight that guards e5, so Black is under slow pressure from move 3. Black’s main replies are 3…a6 (the Morphy Defense) and 3…Nf6 (the Berlin Defense). With good play, White keeps a small edge.
At a glance
- Moves: 1.e4 e5 2.Nf3 Nc6 3.Bb5
- Type: Open game (1.e4 e5). ECO codes C60 to C99.
- White’s idea: pressure on e5 through the c6 knight, castle, then c3 and d4 for a big center.
- Black’s main replies: 3…a6 (Morphy Defense), 3…Nf6 (Berlin Defense), 3…f5 (Schliemann Defense) and 3…d6 (Steinitz Defense).
- Good for: players who enjoy long, slow pressure and don’t mind learning some theory.
What is the Ruy Lopez?
The Ruy Lopez is White’s 3.Bb5 after 1.e4 e5 2.Nf3 Nc6. You’ll also hear it called the Spanish Opening. That name points to Ruy López de Segura, a 16th-century Spanish priest who wrote a chess book in 1561.
This guide is written for you as White, but there’s a section on meeting it as Black too. It’s part of our guide to chess openings.
The move order

- 1.e4 e5. Each pawn grabs a central square and opens a diagonal for the king’s bishop.
- 2.Nf3 Nc6. White attacks e5, and Black guards it with the knight.
- 3.Bb5. Now the bishop attacks the guard. There’s no threat to win e5 yet, so why bother? Because that pressure on e5 lasts well into the middlegame.
The ideas for both sides
White’s plan
- Castle on move 4 or 5. Your e4 pawn often hangs for a move, but you can win it back.
- Play Re1, c3 and d4. The c3 pawn backs up d4, so if Black trades, you take back with a pawn.
- Keep your light-squared bishop. After …a6 and …b5 it drops to b3, then often to c2, still aiming at Black’s king.
- In the closed lines, send the queen’s knight on a trip: Nbd2, Nf1 and Ng3, toward the kingside.
Black’s plan
- Kick the bishop with …a6 and …b5 to gain queenside space.
- Hold e5 with …d6, or hit e4 with …Nf6.
- Castle short, then play …Re8 and …Bf8, or open the queenside with …c5.
Why can’t White just take on c6 and win e5?
White can’t just take on c6 and win e5, because Black’s queen gets the pawn back. After 3…a6 4.Bxc6 dxc6, the greedy 5.Nxe5? runs into 5…Qd4. That hits the knight on e5 and the pawn on e4 at once. After 6.Nf3 Qxe4+ Black has the pawn back and is slightly better.
So Black can play 3…a6 without fear. In the Exchange Variation, White castles first with 5.O-O and only then looks at e5.
The main branches of the Ruy Lopez
Morphy Defense and the Closed main line: 3…a6
The Morphy Defense, 3…a6, is Black’s most popular reply. You’ll meet it in about two thirds of all Ruy Lopez games. Keep the bishop with 4.Ba4, and White stays slightly better.
The Closed Ruy Lopez follows: 4…Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3. Why h3? It stops …Bg4, which would pin your f3 knight before you play d4. White is slightly better here. Step through every move on the board below.
Black can also grab the e4 pawn with 5…Nxe4, the Open Ruy Lopez. White answers 6.d4 and keeps a small edge.
Berlin Defense: 3…Nf6
The Berlin Defense hits e4 right away. The main line goes 4.O-O Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8. The queens are off by move 8 and Black’s king can’t castle. So is Black worse? No: Black has the bishop pair, and the game is equal.

Vladimir Kramnik used the Berlin Defense against Garry Kasparov in their 2000 world championship match and drew 4 of Kasparov’s 8 White games. Want to dodge that endgame? Play 4.d3 instead. It’s also equal, but the queens stay on.
Exchange Variation: 4.Bxc6
The Exchange Variation, 3…a6 4.Bxc6 dxc6 5.O-O, gives up the bishop pair to damage Black’s pawns. Black is left with doubled c-pawns. If the d- and e-pawns are traded later, you have 4 pawns against 3 on the kingside, and that counts in an endgame.
The position is equal. Pick it if you want a simple game and fewer lines to learn.
Marshall Attack: 8…d5
The Marshall Attack is a pawn sacrifice in the Closed Ruy Lopez: 6.Re1 b5 7.Bb3 O-O 8.c3 d5. After 9.exd5 Nxd5 10.Nxe5 Nxe5 11.Rxe5 c6, Black is a pawn down. In return, Black gets fast development and chances against your king, and White keeps only a small edge.
The Marshall Attack needs a lot of homework as White. Don’t want to face it? Play 8.a4 (the Anti-Marshall) or 8.h3 instead of 8.c3. After 8.a4 the game is about equal.
Schliemann Defense: 3…f5
The Schliemann Defense hits e4 with the f-pawn, like a King’s Gambit for Black. Your calm answer is 4.Nc3, and White is slightly better. After 4…fxe4 5.Nxe4 your pieces are already in play.
4.d3 is simpler still, and also slightly better for White. Just don’t grab the pawn with 4.exf5. After 4…e4 your edge is gone, and Black is slightly better.

Steinitz Defense: 3…d6
The Steinitz Defense holds e5 with a pawn, but at a cost: it shuts in the f8 bishop. Hit back with 4.d4, and White is slightly better. After 4…exd4 5.Nxd4 Black is cramped.
Typical plans in the middlegame
- The d4 push. In the Closed Ruy Lopez, you play h3 and then d4. Black holds e5 with …Re8, …Bb7 or …Nb8-d7.
- The knight tour. Your queen’s knight goes Nbd2-f1-g3, eyeing f5 and h5.
- Queenside play. You use a4 to attack the b5 pawn. Black answers with …c5 or …b4.
Common traps in the Ruy Lopez
Noah’s Ark Trap: 8.Qxd4??
The Noah’s Ark Trap catches White’s bishop with Black’s pawns. It comes after 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 d6 6.d4 Nxd4 7.Nxd4 exd4. A black pawn now sits on d4, and it looks free for your queen.
It isn’t. 8.Qxd4?? is the mistake, and 8…c5 attacks the queen. After 9.Qd5 Be6 10.Qc6+ Bd7 11.Qd5 c4, the bishop on b3 is trapped. White can get 2 pawns for it, but Black is winning.
So what should White play on move 8 instead? Either 8.a4 or 8.c3, and the game stays equal.
The 5.Nxe5? grab
The Exchange Variation pawn grab, 4.Bxc6 dxc6 5.Nxe5?, is in the move player above. 5…Qd4 forks the knight and the e4 pawn, and Black ends up slightly better.
How to play against the Ruy Lopez as Black
As Black, pick one main reply and learn it well. Which one? That depends on the game you want.
- 3…a6, the Morphy Defense. Classical and flexible. After 4.Ba4 Nf6 5.O-O Be7, you reach the Closed Ruy Lopez, where White is slightly better.
- 3…Nf6, the Berlin Defense. Solid, and the top-rated reply at move 3. The game is equal. Learn the queenless endgame and the 4.d3 lines.
- 3…f5, the Schliemann. Sharp and risky. White is slightly better with calm play.
Two rules help in every line. Don’t fear 4.Bxc6 followed by Nxe5, because 5…Qd4 gets the pawn back. And in the …b5 lines, if White’s queen takes on d4, look for …c5 and …c4 to trap the b3 bishop.
Learn the Ruy Lopez in 5 moves
If you only remember 5 things as White:
- Learn the moves: 1.e4 e5 2.Nf3 Nc6 3.Bb5. Then castle on move 4 or 5.
- Against 3…a6, retreat with 4.Ba4. Keep the bishop for the long game.
- Play Re1, c3, h3 and then d4. That is the Closed Ruy Lopez plan.
- Against 3…Nf6, play 4.O-O or the quieter 4.d3.
- Never take on d4 with the queen if …c5 and …c4 can trap your b3 bishop.
[Event "Ruy Lopez: Closed main line starter"]
[Result "*"]
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 *
[Event "Ruy Lopez: Exchange Variation starter"]
[Result "*"]
1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Bxc6 dxc6 5. O-O *
Don’t expect a knockout from either line. At the end of both, White has a small edge at most, and you win by outplaying Black slowly.
FAQ
Is the Ruy Lopez good for beginners?
Yes, the Ruy Lopez is good for beginners, but it’s harder than the Italian Game. The plans are slow and Black has many replies. Learn the chess opening principles first, and if you’re new, start with chess for beginners.
Why is it called the Ruy Lopez?
It’s called the Ruy Lopez after Ruy López de Segura, a Spanish priest. He wrote about the opening in his 1561 chess book.
Is the Ruy Lopez better than the Italian Game?
The Ruy Lopez isn’t clearly better than the Italian Game: both give White about the same small edge at most. The difference is style. The Ruy Lopez keeps more long-term pressure on e5, while the Italian Game is quicker to learn.
What is the best defense against the Ruy Lopez?
One of the best defenses against the Ruy Lopez is 3…Nf6, the Berlin Defense. It’s the top-rated reply at move 3, and the game is equal. 3…a6 is close behind and gives you a richer middlegame.
Why does Black play 3…a6 in the Ruy Lopez?
Black plays 3…a6 in the Ruy Lopez to make the bishop decide. If it takes on c6, 5.Nxe5 runs into 5…Qd4. If it retreats, Black can later gain space with …b5.
Read next
Updated November 25, 2026.








