How to Play the Ruy Lopez

ECO C60-C99 · 7 variations with a course · 30 lines in the overview

The Ruy Lopez starts with 1.e4 e5 2.Nf3 Nc6 3.Bb5. White attacks the knight that defends the e5 pawn, which puts lasting pressure on Black's center without winning anything at once. Black then has to decide the character of the game with the flexible 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6, the solid 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6, or one of the older setups. The opening has been studied for centuries, and it rewards patience: White builds slowly, keeps the pieces coordinated and opens the center only when the moment is right.

Key ideas

  • The bishop on b5 pressures the knight on c6, which defends the e5 pawn. The pressure is indirect, so White builds it up patiently instead of grabbing material.
  • In the main lines White prepares a central break with the c-pawn and the d-pawn, and keeps the pieces behind the pawn center before opening the position.
  • The bishop normally steps back along its diagonal, first to a4 and later to b3. Know when it is worth exchanging on c6 instead.
  • Black's a-pawn and b-pawn moves gain space on the queenside, so White's bishop has to find a safe diagonal.

Main line

  1. 1.e4 e5
  2. 2.Nf3 Nc6
  3. 3.Bb5

The main line, move by move

Play 1.e4 e5 2.Nf3 Nc6 3.Bb5 slowly. The bishop attacks the knight on c6, but the pressure is not a threat yet: if White exchanges and takes on e5, Black regains the pawn with 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.Nxe5 Qd4, hitting the knight and the e4 pawn at the same time.

Each third move gives the game a different character: the flexible 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6, the solid 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6, or older choices that you can meet later.

Plans for both sides

If you play White

  • In the Closed Ruy, after 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7, White prepares the c-pawn and then the d-pawn to build a broad center, keeping the bishop aimed at the kingside and the knights ready to reroute.
  • For a simpler game, choose the Exchange Variation, 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6. White gives up the bishop for a knight, leaves Black with doubled c-pawns and plays for a healthier kingside pawn majority.
  • Against the Open Defense, 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4, White hits the center at once with the d-pawn and plays for activity. Know the typical follow-up moves, because both sides must act quickly there.

If you play Black

  • Play the Morphy Defense, 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6, and ask the bishop a question at once. After 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 you can choose the quiet Closed setup or grab the e4 pawn in the Open Ruy.
  • In the Closed Ruy, the 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, sacrifices a pawn for activity and attacking chances against White's king. It needs exact knowledge, so learn it line by line.
  • For a solid structure, choose the Berlin Defense, 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6. Black builds a compact position and often trades queens early, which suits players who like to defend patiently.

Typical traps

Noah's Ark Trap

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 d6 6.d4 Nxd4 7.Nxd4 exd4 8.Qxd4 c5 9.Qd5 Be6 10.Qc6+ Bd7 11.Qd5 c4 12.Bxc4 bxc4 13.Qxc4

The course does not drill this full line.

In 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 d6 6.d4 Nxd4 7.Nxd4 exd4 8.Qxd4 c5 White's queen has grabbed a pawn and Black pushes the c-pawn twice. The queen harasses the bishop and the king, but the pawn on c4 then traps the bishop on b3, and after the capture White has two pawns for the bishop.

What to avoid: As White, check the bishop's escape squares before you open the center with the d-pawn; your own pawns on a2 and c2 block its retreat. As Black, note that the pawn on b5 covers a4 and c4, so the c-pawn can then attack the bishop.

Mortimer Trap

1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.d3 Ne7 5.Nxe5 c6 6.Nf3 cxb5

The course does not drill this full line.

Against the quiet 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 setup White takes a pawn, as in 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.d3 Ne7 5.Nxe5 c6. The c-pawn then attacks the bishop on b5. If White overlooks the bishop threat and retreats the knight to f3, the pawn takes the bishop and White is a bishop down for a pawn. The safe answer is to retreat the bishop, for example to c4, instead of the knight.

What to avoid: As White, resist the pawn on e5 here and finish your development first, or be ready to move the bishop at once. As Black, notice that the knight on e7 has cleared the c-pawn's path.

Variations of the Ruy Lopez

Lichess opening explorer, standard chess, ratings 1600–2499, blitz/rapid/classical games, fetched 4 Nov 2026. Counts are games reaching the line's last position, not distinct players. Share is of the games counted across all lines of this course; lines can reach the same position by different move orders, so counts can overlap.
LineMovesLichess gamesShare
Closed1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O756,56729%
Marshall Attack1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 O-O 8.c3 d5694,54126%
Closed, Martinez Variation1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.d3 b5 7.Bb3 d6 8.c3 O-O217,3348.2%
Open, Main Line1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4 6.d4 b5 7.Bb3 d5 8.dxe5 Be6139,9395.3%
Morphy Defense, Neo-Arkhangelsk Variation1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.c3 d6 8.d4 Bb6126,3664.8%
Morphy Defense, Graz Variation1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 Bc5 6.O-O d6 7.c3 Nf6 8.d4 Bb6126,3664.8%
Morphy Defense, Graz Variation · 6…Nf61.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 Bc5 6.O-O Nf6 7.c3 d6 8.d4 Bb6126,3664.8%
Morphy Defense, Neo-Arkhangelsk Variation · 8…exd41.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.c3 d6 8.d4 exd4100,9933.8%

All lines in the course

  1. Closed 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
  2. 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
  3. Closed, Martinez Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7 6.d3 b5 7.Bb3 d6 8.c3 O-O
  4. Morphy Defense, Neo-Arkhangelsk Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.c3 d6 8.d4 Bb6
  5. Morphy Defense, Neo-Arkhangelsk Variation · 8…exd4 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.c3 d6 8.d4 exd4
  6. Morphy Defense, Neo-Arkhangelsk Variation · 7…O-O 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O b5 6.Bb3 Bc5 7.c3 O-O 8.d4 exd4
  7. Exchange Variation, King's Bishop Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bd6 6.d4 Bg4 7.dxe5 Bxf3 8.Qxf3 Bxe5
  8. Exchange Variation, King's Bishop Variation · 7…Bxe5 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bd6 6.d4 Bg4 7.dxe5 Bxe5
  9. Exchange Variation, King's Bishop Variation · 6…Qe7 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bd6 6.d4 Qe7
  10. Exchange Variation, Alapin Gambit 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bg4 6.h3 h5 7.d3 Qf6 8.Nbd2 Bc5
  11. Exchange Variation, Alapin Gambit · 8…g5 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bg4 6.h3 h5 7.d3 Qf6 8.Nbd2 g5
  12. Exchange Variation, Alapin Gambit · 8…Ne7 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.O-O Bg4 6.h3 h5 7.d3 Qf6 8.Nbd2 Ne7
  13. Morphy Defense, Classical Defense Deferred 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Bc5 5.O-O Nf6 6.c3 b5 7.Bc2 d5
  14. Morphy Defense, Classical Defense Deferred · 7…d6 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Bc5 5.O-O Nf6 6.c3 b5 7.Bc2 d6
  15. Morphy Defense, Classical Defense Deferred · 7…O-O 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Bc5 5.O-O Nf6 6.c3 b5 7.Bc2 O-O
  16. Morphy Defense, Møller Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Bc5 6.c3 b5 7.Bc2 d5
  17. Morphy Defense, Møller Variation · 7…d6 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Bc5 6.c3 b5 7.Bc2 d6
  18. Morphy Defense, Møller Variation · 7…O-O 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Bc5 6.c3 b5 7.Bc2 O-O
  19. Morphy Defense, Graz Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 Bc5 6.O-O d6 7.c3 Nf6 8.d4 Bb6
  20. Morphy Defense, Graz Variation · 6…Nf6 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 Bc5 6.O-O Nf6 7.c3 d6 8.d4 Bb6
  21. Morphy Defense, Graz Variation · 8…exd4 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 Bc5 6.O-O d6 7.c3 Nf6 8.d4 exd4
  22. Steinitz Defense Deferred, Lipnitsky Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O d6 6.Bxc6+ bxc6 7.d4 Bg4
  23. Morphy Defense, Steinitz Deferred 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O d6 6.Bxc6+ bxc6 7.d4 Nxe4 8.Re1 f5
  24. Exchange Variation, Alekhine Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.d4 exd4 6.Qxd4 Qxd4 7.Nxd4 Bd6
  25. Exchange, Alekhine Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6 5.d4 exd4 6.Qxd4 Qxd4 7.Nxd4 Bd7 8.Be3
  26. Open, Main Line 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
  27. Open 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4 6.d4 Be7 7.Re1 b5 8.Bb3 d5
  28. Morphy Defense, Tartakower Variation 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4 6.Qe2
  29. Classical Variation, Modern Main Line 1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O Bc5 5.c3 O-O 6.d4 Bb6 7.Bg5 h6
  30. Noah's Ark Trap 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 b5 5.Bb3 d6 6.d4 Nxd4 7.Nxd4 exd4 8.Qxd4 c5

Explore the tree

Walk every named position of the Ruy Lopez on a board in the opening explorer.

Frequently asked questions

Why is it called the Ruy Lopez?
It is named after Ruy López de Segura, a Spanish priest who wrote about the opening in the sixteenth century. You will also see it called the Spanish Opening or the Spanish Game. All of these names mean the position after 1.e4 e5 2.Nf3 Nc6 3.Bb5 and the plans that grow out of it.
What is the difference between the Open and Closed Ruy Lopez?
In the Closed Ruy, Black plays 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Be7, keeps the e5 pawn guarded and the center closed. In the Open Ruy, Black plays 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O Nxe4 and takes the e4 pawn, so the position opens at once. The two choices lead to different plans, so practice them separately.
Is the Ruy Lopez good for beginners?
It can be, with the right expectations. The plans are logical, but the theory is long and many lines look similar at first. The course gives 30 lines to practice as White. Start with the Closed Ruy and add the Exchange Variation, 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6, as a simpler alternative.
What is the Marshall Attack?
It is a famous Black idea in the Closed Ruy, reached by 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. Black sacrifices a pawn for activity and attacking chances against White's king. It is one of the lines the course drills for White, so you will see it again.

Opening names and moves: lichess-org/chess-openings (CC0). Statistics: Lichess database. ChessNeat is free, needs no account, and keeps progress on your device.