Openings

Learn the Ruy Lopez: The Spanish Opening Explained

Learn the Ruy Lopez step by step: what 3.Bb5 really does, the Morphy and Berlin defenses, the Exchange Variation, and a drill plan that makes it stick.

July 25, 2026 · 5 min read · GoWinChess

Remember every opening and endgame you study. GoWinChess drills your repertoire with spaced repetition so it sticks — free to start.

Start free →

The Ruy Lopez begins 1.e4 e5 2.Nf3 Nc6 3.Bb5 and has been the main event of chess for over four centuries. It is named after Ruy Lopez de Segura, a 16th-century Spanish priest who analyzed it in one of the first printed chess books, which is why you will also hear it called the Spanish Opening. If you want to learn the Ruy Lopez, the good news is that its core logic is simple, even though grandmasters have spent entire careers arguing about the details.

What 3.Bb5 actually does

The bishop attacks the c6-knight, and that knight defends the e5-pawn. So White is asking a concrete question: who is going to keep guarding e5?

Here is the subtle part. White is not threatening to win a pawn right away. After 3...a6 4.Bxc6 dxc6 5.Nxe5, Black plays 5...Qd4, forking the knight on e5 and the pawn on e4, and gets the pawn straight back.

The point of 3.Bb5 is pressure, not tactics. White keeps nagging at e5 and the center for the next twenty moves, slowly improving pieces while Black defends. Players have called this slow squeeze the "Spanish torture" for good reason.

The Ruy Lopez does not try to win a pawn on move four. It tries to ask Black uncomfortable questions for forty moves.

The Morphy Defense: the main line

Black's most popular reply is 3...a6, the Morphy Defense. It puts the question to the bishop immediately: capture on c6 or retreat?

The main line runs 4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6. Both sides develop, White protects e4 with the rook, and Black finally kicks the bishop with ...b5 before shoring up e5 with ...d6.

From here White usually plays c3 to prepare d4 and to give the bishop an escape square on c2. A classic White plan is the famous knight tour Nb1-d2-f1-g3, rerouting toward the kingside while the center stays locked in tension. Black counters on the queenside and strikes back in the center. These closed Spanish middlegames are some of the richest positions in chess.

One more name worth knowing: if Black castles on move seven and follows up with an early ...d5 pawn sacrifice, that is the Marshall Attack, one of the most deeply analyzed gambits in chess. You will not face it often at club level, but it is the main reason many strong players choose move orders that sidestep it.

The Exchange Variation and the Berlin Defense

If the closed main line feels like too much theory, White can play the Exchange Variation: 3...a6 4.Bxc6 dxc6. White gives up the bishop pair to saddle Black with doubled c-pawns.

The strategy is brutally simple. White wants to trade pieces and reach an endgame where the healthy kingside pawn majority can produce a passed pawn, while Black's crippled queenside majority cannot. Bobby Fischer revived this line in the 1960s and scored heavily with it.

Black's other big option is the Berlin Defense, 3...Nf6, which Vladimir Kramnik used to dethrone Garry Kasparov in their 2000 world championship match. The famous Berlin endgame arises after 4.O-O Nxe4 5.d4 Nd6 6.Bxc6 dxc6 7.dxe5 Nf5 8.Qxd8+ Kxd8. Black loses castling rights and accepts doubled pawns, but gets the bishop pair and a position so solid that Kasparov never broke through it.

If you play 1...e5 as Black yourself, you need an answer to the Ruy Lopez ready before it hits you. The Open Games as Black course gives you a practical repertoire against it and against White's other main tries.

Why learn the Ruy Lopez and not the Italian?

The Italian Game with 3.Bc4 is the other big choice after 1.e4 e5 2.Nf3 Nc6, and it is the easier of the two to pick up. The bishop aims directly at f7, the plans are straightforward, and there is less theory to memorize.

The Ruy Lopez asks more of you and gives more back. Because the tension lasts deep into the middlegame, it teaches the classical skills that transfer to every opening you will ever play: maintaining a pawn center, improving your worst piece, trading at the right moment, and playing on both sides of the board.

That is why coaches have recommended it for over a century. Studying the Ruy Lopez is a course in positional chess disguised as an opening. If you are still working on the fundamentals, start with the opening principles guide and come back to it.

How to actually learn it

The Ruy Lopez has a scary reputation for theory, but you do not need most of it. A club player needs one clear answer to the Morphy Defense, a plan against the Berlin, and the ideas behind the standard structures. That is a couple dozen lines, not a database.

Pick those lines the way you would build any opening: one choice at each branch, nothing you do not understand. Our guide on how to build a chess opening repertoire walks through exactly that process.

Then make the lines stick. Play through the Ruy Lopez course on GoWinChess to learn each line on the board with the ideas attached, then drill the moves from memory. The trainer schedules your reviews with spaced repetition, so each line comes back right before you would forget it. That timing is the whole trick: it is why most players forget their openings and you will not.

Fifteen minutes a day for a few weeks and the main lines become automatic. After that, the Spanish torture is something you inflict, not something you suffer.

Keep reading

Remember every opening you learn

GoWinChess drills your repertoire with spaced repetition so the lines are there when you need them. Start free.

Browse openings →