Openings
The Ruy Lopez Opening in Chess (Spanish Opening) Explained
The Ruy Lopez, also known as the Spanish Opening, is one of the most played openings in chess, from World Championship matches all the way down to weekend club games. It is a favorite weapon of five-time World Champion Magnus Carlsen, and this guide covers the basics of the Ruy Lopez, from its main ideas to its most important variations.
What Is the Ruy Lopez?
The Ruy Lopez is defined by the moves 1.e4 e5 2.Nf3 Nc6 3.Bb5. This gives us the position below.
Developing the bishop to b5 is the signature move of the Ruy Lopez. The bishop puts direct pressure on the black knight sitting on c6.
- What ideas are hiding behind this bishop move?
- How can Black respond?
- What are White's development plans?
Those are exactly the questions this guide answers, starting with the basics of the Ruy Lopez below.
The Italian Game is another cornerstone chess opening, played by total beginners and grandmasters alike. It differs from the Ruy Lopez in where the bishop goes on move 3, c4 for the Italian Game instead of b5 for the Ruy Lopez.
Variations of the Ruy Lopez
The Ruy Lopez is a remarkably varied opening. From the very first moves, both players can choose paths that lead to completely different types of positions. Here are its main variations.
The Exchange Variation
This variation appears after the moves 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6.
White has simply given up the bishop pair to damage Black's pawn structure by creating doubled pawns. Notice first that the e5 pawn still cannot be grabbed by the knight on f3, because Black would answer with ...Qd4, forking the knight on e5 and the pawn on e4.
White's main idea in this position is to push the pawn to d4 and trade off Black's e5 pawn. After that trade, White ends up with a healthy four-versus-three kingside pawn majority that is easy to mobilize, while Black's queenside majority is clumsy and hard to get moving. White will therefore aim to steer the game into an endgame and push a pawn all the way to promotion. Black, on the other hand, will look to put the bishop pair to work in the middlegame to disrupt White's plan before an endgame ever arrives. Each side has real trumps to play in this variation, and whoever makes the most of their assets wins the game.
The great exponent of the Exchange Variation is Bobby Fischer. Many of his games in this line have become genuine classics.
Open and Closed Ruy Lopez
Now let's look at what happens when White does not trade the bishop on c6. For example, 1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O.
This is a real crossroads between the major branches of the Ruy Lopez. If Black grabs the e4 pawn, more files, ranks and diagonals open up on the board. This is, quite logically, the Open Ruy Lopez.
The game turns sharper and more tactical.
If instead Black leaves the e4 pawn alone and develops the dark-squared bishop to e7, the position stays closed for now. That is the Closed Ruy Lopez.
If you are looking for a model player in the Open and Closed Ruy Lopez, study the games of Magnus Carlsen. In his 2021 World Championship match against Ian Nepomniachtchi, Carlsen defended the Ruy Lopez with the black pieces in four separate games, neutralizing the Anti-Marshall lines without ever coming under real pressure.
The Marshall Attack
No overview of the Ruy Lopez would be complete without the Marshall Attack, developed by the formidable American master it is named after. It arises after the moves 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.
It is a gambit because after the exchange on d5, White can grab the e5 pawn, and Black's prepared counterattack is ferocious. Frank Marshall famously unveiled this idea against José Raúl Capablanca in New York, 1918.
The Berlin Defense
Let's rewind a little. It might look as though Black always plays ...a6 here, but that is not the case. Black can simply leave White's light-squared bishop on b5 and play ...Nf6 instead.
This is an extremely solid setup, and White often struggles to find a way to unbalance the position. Vladimir Kramnik famously rode this defense, nicknamed the Berlin Wall, to the World Championship title against Garry Kasparov in their 2000 match in London.
Memorize or Understand the Ruy Lopez?
Not so long ago, the best players in the world memorized and recited opening lines 25 or 30 moves deep, and the Ruy Lopez, with its enormous body of theory, was the epicenter of that approach. Fortunately for the rest of us, five-time World Champion Magnus Carlsen swept that method aside and showed that understanding the ideas behind an opening matters far more than memorizing it. That is why our goal is always to explain opening ideas as clearly and simply as possible.
Learn Opening Strategy First
That said, before you "specialize" in any one opening, it pays to learn a few core strategic principles for starting a chess game well. You will find those opening principles laid out in our complete guide to chess openings.
But once you are comfortable with those principles, it is entirely natural to want to specialize somewhat in one opening, to give yourself the best possible chance of reaching a comfortable middlegame. That is exactly what this guide offers you here.
Why Is It Called the Ruy Lopez (or Spanish Opening)?
Chess openings are often named after geography, so why is this one called the Spanish Opening? Ruy López de Segura (born around 1530 in Zafra, near Badajoz, Spain, died around 1580) was a Spanish Catholic priest of the sixteenth century, chaplain to King Philip II of Spain, and one of the first great players of the modern game. López is famous for his deep analysis of this opening, and his 1561 treatise had a lasting influence on chess strategy and theory that is still studied and admired by players today.
Where to Go Next
That covers our guide to the Ruy Lopez. We hope it helps you win a few extra games with it.
- Browse our complete guide to chess openings to see where the Ruy Lopez fits into the bigger picture
- Learn the Italian Game, White's other great classical way to meet
1...e5
If you would like a full step-by-step path through the fundamentals, our free chess openings course is below.
If this guide helped you, feel free to share it.