Ruy Lopez: The Complete Guide

Disclosure: this guide was written by the team behind Chess DNA, the free AI chess-analysis app you'll see recommended below. About us

By Yuval Incze · Published Jul 5, 2026 · Updated Jul 5, 2026 · ~3 min read

The Ruy Lopez (the Spanish Opening) — its main lines, the plans for both sides, and how to tell whether it fits your style.

TL;DR The Ruy Lopez (ECO C60–C99) begins with 1.e4 e5 2.Nf3 Nc6 3.Bb5. Played in tournament chess for more than 450 years, it is an opening for White that aims to seize the initiative from move one. This guide walks through its main variations, the typical plans and pawn structures for both sides, its famous practitioners, and who should add it to their repertoire — then shows how to check whether it actually works in your own games.

Starting position and moves

The Ruy Lopez (also known as the Spanish Opening) is an opening for White, classified under ECO codes C60–C99. It begins with:

1.e4 e5 2.Nf3 Nc6 3.Bb5
♜︎♝︎♛︎♚︎♝︎♞︎♜︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♞︎♝︎♟︎♟︎♞︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜︎♞︎♝︎♛︎♚︎♜︎abcdefgh87654321

The idea behind the Ruy Lopez

White pins pressure on the c6-knight that defends the e5-pawn, aiming to undermine Black's centre while keeping a long-term positional grip. The Ruy Lopez is the most respected 1.e4 e5 opening — its main lines have been the battleground of World Championship matches for over a century.

Main lines and key variations

VariationMoves
Morphy Defence (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
Berlin Defence1.e4 e5 2.Nf3 Nc6 3.Bb5 Nf6 4.O-O Nxe4
Exchange Variation1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Bxc6 dxc6

Morphy Defence (Closed): The classical main line. Black kicks the bishop with ...a6/...b5 and builds a solid centre; White plays for a slow d4 with a knight manoeuvre Nbd2–f1–g3.

Berlin Defence: The rock-solid "Berlin Wall" — Black heads for an endgame that neutralised Kasparov in 2000 and remains a top-level drawing weapon.

Exchange Variation: White trades on c6 to damage Black's pawns, banking on a superior kingside majority in the endgame.

Plans for both sides

White's plans

Black's plans

Typical pawn structure

The Closed Ruy revolves around the e4/e5 tension and the famous knight tour to g3. Black's ...c6/...d6 chain is solid but slightly passive; White's space edge is real but hard to convert.

Famous practitioners

The Ruy Lopez has been championed by Every World Champion from Steinitz to Carlsen, Bobby Fischer (a lifelong devotee), Garry Kasparov. Kasparov–Kramnik, London 2000: Kramnik's Berlin Defence blunted Kasparov's 1.e4 for an entire match and helped him take the title.

Strengths and weaknesses

Strengths. The most strategically rich 1.e4 e5 opening; Time-tested at the very highest level; Rewards positional understanding.
Weaknesses. Deep theory in the main lines; The Berlin can be frustratingly solid for White.

Who should play the Ruy Lopez?

Ambitious 1.e4 players from about 1500 up who want a long-term positional weapon. Below that, the Italian is an easier entry point to the same 1.e4 e5 world.

See how you actually play the Ruy Lopez

Reading about an opening is one thing; knowing whether you handle it well is another. Chess DNA analyzes your real Chess.com and Lichess games with Stockfish, then shows you exactly where you go wrong — including which openings and pawn structures cost you the most rating. Instead of guessing whether the Ruy Lopez suits you, you get a data-backed answer from your own games, plus targeted drills on the specific mistakes you keep repeating. It is free to analyze your first games.

Frequently Asked Questions

Why is it called the Ruy Lopez?

It is named after Ruy López de Segura, a 16th-century Spanish priest who analysed 3.Bb5 in a 1561 book. English speakers often call it the "Spanish Opening" or simply "the Spanish".

Is the Ruy Lopez too advanced for club players?

You can play it at any level if you focus on plans over memorisation. Learn the Closed main-line ideas — the a6/Ba4 bishop retreat, the knight tour to g3, the d4 break — and you will get playable positions without knowing 20 moves of theory.

What is the Berlin Wall?

The Berlin Defence (3...Nf6) leads after 4.O-O Nxe4 to an early queen trade and a famous endgame where Black's structure is sound despite a slightly awkward king. It is one of the hardest openings to beat at elite level.

Analyze your Ruy Lopez games free →

Related guides

About the author

Yuval Incze is the founder of Chess DNA and a long-time competitive chess player. He built Chess DNA to automate the diagnostic loop — game analysis, pattern detection, weakness ranking — so players study the specific things costing them rating instead of generic advice.