Ruy Lopez
The Ruy Lopez begins 1.e4 e5 2.Nf3 Nc6 3.Bb5, attacking the knight that guards e5. White wants long pressure on e5 and a strong center with c3 and d4, while Black picks a defense such as 3...a6 or 3...Nf6 and fights for equality.
- Moves
- 1.e4 e5 2.Nf3 Nc6 3.Bb5
- ECO
- C60
- Engine
- +0.24 · level (Stockfish 17.1, depth 20)
- Played
- 87,265 games in our lichess sample
- White scores
- 53.2%
Key ideas for both sides
White
- Castle quickly, then build c3 and d4 so the center is solid before the play against e5 grows.
- Keep the bishop on the a4-e8 or b3-g8 diagonal; after ...a6 retreat to a4, after ...b5 to b3.
- Use Re1 to protect e4 and add weight on the e-file.
- The Exchange idea Bxc6 gives Black the bishop pair but doubles Black's c-pawns for the endgame.
Black
- Ask the bishop with ...a6 and gain space with ...b5 when the timing is right.
- Hit e4 with ...Nf6. In the Berlin, ...Nxe4 is safe because White's e-pawn is not defended.
- Play ...Be7, ...O-O and ...d6 for a compact center that holds e5.
- Prepare the ...d5 break, as in the Marshall and the Open lines, to free the game.
Plans and pawn structure
White's main plan is a slow buildup: O-O, Re1, c3 and d4, with the b1 knight going to d2, f1 and g3. Black meets this with ...a6, ...b5, ...Be7, ...d6 and ...O-O, keeping e5 firm and gaining queenside space. Later Black plays ...Na5 and ...c5 or ...d5, while White uses a4 against the queenside pawns. In the Berlin the play is simpler: early piece trades and endgame-like positions where small structural details count.
What the Ruy Lopez is about
After 1.e4 e5 2.Nf3 Nc6 3.Bb5 White's bishop attacks the knight that defends e5. There is no immediate threat: if White trades on c6 and takes on e5, Black can win the pawn back with ...Qd4 or ...Qg5. The real point is long-term pressure. Once White castles, plays Re1 and builds c3 and d4, the pin on the knight becomes much more annoying.
White scored 53.2% from this position over 87265 games. The engine's top replies are 3...Nf6, 3...a6 and 3...Nd4, and all of them leave White with a small edge, which is typical of the Ruy Lopez.
The main variations
The Morphy Defense, 3...a6, is the main line. Black asks the bishop at once. After 4.Ba4 Nf6 5.O-O, Black chooses between the Closed line, 5...Be7, and the Open line, 5...Nxe4. The Closed line leads to the slow maneuvering battles the opening is known for.
The Berlin Defense, 3...Nf6, hits e4 at once. The engine line 4.O-O Nxe4 5.Re1 Nd6 6.Bf1 Be7 7.Nxe5 shows how White wins the pawn back with a small edge. The Berlin is hard to crack and suits patient defenders.
The Exchange Variation, 4.Bxc6, gives up the bishop pair to double Black's c-pawns. White aims for an endgame where the kingside pawn majority counts, while Black uses the bishops.
The Steinitz Defense, 3...d6, is very popular at club level but passive; the engine gives White more than usual. The Classical Variation, 3...Bc5, develops actively and allows c3 and d4 with tempo.
For a sharp counter, the Marshall Attack gives a pawn with ...d5 for an attack on White's king, and Black scored well in practice. Also look at the traps: Noah's Ark Trap, the Tarrasch Trap and the Fishing Pole Trap.
Typical plans for White
White's standard plan is O-O, Re1, c3 and d4. The bishop drops back to a4 and then b3 after ...b5, where it eyes f7 and d5. The b1 knight goes to d2, f1 and g3 to support the kingside. The move h3 stops ...Bg4, which would pin the f3 knight and weaken d4.
- Use a4 to attack Black's queenside pawns after ...b5.
- Close the center with d5 when Black's pieces are aimed at it, then attack on the kingside.
- In the Exchange line, trade pieces and play for an endgame with the healthy kingside majority.
Typical plans for Black
Black's main setup is ...a6, ...Nf6, ...Be7, ...b5, ...d6 and ...O-O. The pawn on b5 gains queenside space and chases the bishop. Then Black plays ...Na5 to hit the b3 bishop and ...c5 to fight for d4, or prepares ...d5 to open the center.
- In the Berlin, take on e4 and aim for a structure with no weak pawns and the bishop pair.
- The ...d5 break, as in the Marshall, opens lines when Black is well developed.
- Watch the e5 pawn. After Bxc6 and d4, it can drop if Black is careless.
Mistakes club players make
- White grabbing on d4 with the queen. In Noah's Ark Trap Black answers with ...c5 and ...c4, and the b3 bishop is trapped.
- Taking on e4 too greedily in the Open line. In the Tarrasch Trap Black puts the queen on d7, and White's sacrifices on e6 and e4 open the d-file to win it.
- Grabbing the knight on g4 with h3 and hxg4. The Fishing Pole Trap opens the h-file for Black's rook and queen.
- Black playing 3...d5 or 3...Qe7. Both are clear mistakes according to the engine.
- White trading on c6 and grabbing e5 too soon. Black regains the pawn with a queen fork and is fine.
Who should play it
The Ruy Lopez suits patient players who enjoy long strategic games and are willing to learn plans that carry deep into the middlegame. White gets a lasting edge with little risk. For Black, the Berlin suits patient defenders, the Morphy Defense suits players who want rich positions, and the Marshall suits players who like attacking chances in return for a pawn.
Because the Ruy Lopez keeps tension for a long time, it also teaches a lot about pawn structures, which helps in every other 1.e4 e5 opening.
What the engine plays from here
Stockfish 17.1 at depth 20 rates the position +0.24: level. Its three top choices for Black:
- +0.24 3...Nf6 4.O-O Nxe4 5.Re1 Nd6 6.Bf1
- +0.29 3...a6 4.Ba4 Nf6 5.O-O Nxe4 6.d4
- +0.43 3...Nd4 4.Nxd4 exd4 5.O-O c6 6.Bc4
Pawns, from White's side.
How it scores on lichess
87,265 rated lichess games reached this position; White scored 53.2%.
Light: White wins. Grey: draws. Dark: Black wins. About the sample.
Traps and pitfalls
Fishing Pole Trap (Black sets it)
Black leaves a knight on g4 as bait with 5...h5. If White takes it with 6.hxg4, the h-file opens and the black queen and pawn crash through to the white king.
Noah's Ark Trap (Black sets it)
White wins back the d4 pawn with 8.Qxd4, and Black traps the bishop on b3. The pawns on a6, b5 and c4 form a cage, and the bishop has no escape squares.
Variations of the Ruy Lopez
- Steinitz Defense3...d6 · 17,459 games
- Berlin Defense3...Nf6 · 16,634 games
- Morphy Defense3...a6 · 11,784 games
- Classical Variation3...Bc5 · 10,564 games
- Cozio Defense3...Nge7 · 4,937 games
- Bird Variation3...Nd4 · 4,648 games
- Schliemann Defense3...f5 · 2,521 games
- Nürnberg Variation3...f6 · 1,254 games
- Brentano Gambit3...g5 · rare
- Pollock Defense3...Na5 · rare
- Retreat Variation3...Nb8 · rare
- Rotary-Albany Gambit3...b6 · rare
- Schliemann Defense, Möhring Variation3...f5 · rare
- Classical Defense, Zaitsev Variation3...Bc5 · rare
How to play against it
As Black, choose a defense that fits your style: 3...a6 for rich middlegames, 3...Nf6 for a sturdy structure. Learn one main plan rather than memorizing everything. Avoid the passive Steinitz Defense, 3...d6, and the dubious 3...d5, which the engine punishes.
Full guide: how to beat the Ruy Lopez
Questions
What are the moves of the Ruy Lopez?
The Ruy Lopez starts 1.e4 e5 2.Nf3 Nc6 3.Bb5. Its ECO code is C60.
Is the Ruy Lopez good for White?
Stockfish 17.1 rates the position +0.24 at depth 20, which is level. In 87,265 lichess games from our sample, White scored 53.2%. A lifelong opening for patient players who like long strategic games and are willing to learn plans in depth.
What is the main idea of the Ruy Lopez?
White attacks the c6 knight, the piece that guards e5, and keeps squeezing Black's center with c3, d4 and Re1. Black challenges the bishop with ...a6, develops quickly and holds e5 before freeing the game with ...d5.
What should Black play next?
The engine's first choice is Nf6, with a6 and Nd4 close behind. 3...Nf6 counterattacks e4 at once, and the engine line shows Black can take it with ...Nxe4.
Updated October 2026. Sources and method.