What is scholar's mate?
Scholar's mate is a checkmate in four moves: White's queen and bishop both aim at f7, and the queen takes there with mate.
The target is f7. At the start of the game only Black's king defends that pawn, so two white pieces attacking it are one too many. White has the same weak spot on f2.
Among beginners, games often end this way. Above that level you almost never see it: the attack is easy to stop, and once it is stopped, White's position usually gets worse.
In the Lichess list of openings, 1.e4 e5 2.h5 is called the Wayward Queen Attack, part of the King's Pawn Game.
The same mate in other languages
herdersmat: Dutch
Schäfermatt: German
coup du berger: French
mate del pastor: Spanish
All four are named after a shepherd. Other English names are schoolboy's mate and Blitzkrieg.
Play through the trap
Keep an eye on f7, next to Black's king. Only the king defends it.
3...f6 looks like a good move: it brings out a piece and attacks the queen. It just doesn't answer the threat. In the opening, first look at what your opponent's last move attacks, especially near your king.
Stop the mate yourself
You are Black. White threatens xf7 mate. Find a move that stops it.
Four moves stop the mate without costing anything, and one of them also drives the queen away. Stockfish likes that one best. What White tries next is on the board below.
White's second try
3.c4: queen and bishop aim at f7, and only the king defends it.
After 4...f6, Black can put the bishop on g7, behind the pawn on g6. White has moved the queen twice, and she now stands on f3, the square where White's knight usually goes.
White's third try, and the knight trap
5.b3?? The queen lines up behind the bishop for a third try at f7. This is the mistake.
5.b3 is the move that loses. Until then Stockfish calls the position about equal; after it, Black is ahead by almost five pawns. Whatever White plays after 5...
d4, material is lost.
White's best fifth move is 5.e2: the knight covers d4, so the black knight can't jump there.
The same mate on f2
Black can play the same trick against f2. At the 2023 World Rapid Championship, the game Ganguly against Madaminov went 1.e4 e5 2.f3
c6 3.d4 exd4 4.
xd4
f6 5.
f3
b4+ 6.c3
c5 7.
d3
e5 8.
xe5
xf2#.
The pattern is the one from scholar's mate: queen and bishop on the weak square next to the king, which after 8.xe5 only the king defended. The game began as a Scotch Game.
Where the name comes from
Francis Beale named and described scholar's mate in 1656, in The Royall Game of Chesse-Play, his adaptation of the work of Gioachino Greco.
In July 1879, Richard Proctor wrote in the magazine Belgravia that the chess automaton Mephisto had mated an opponent this way, on the sixth or seventh move.
Its faster cousin is fool's mate: mate in two moves. That one needs two very bad moves by White and rarely happens at any level.
How to stay safe as Black
Which white pieces aim at f7, and how many of yours defend it?
As long as only your king defends f7, two attackers are enough for mate. Count them before every move in the opening.
If you would rather not meet these lines at all, answer 1.e4 with 1...e6, the French Defense, or with 1...d5, the Scandinavian Defense: against those, the mate doesn't work.
The answers to remember
Against 2.
h5: 2...
c6
The knight defends e5. Then 3.c4 g6, and on 4.
f3 comes 4...
f6.
Against 2.
c4: 2...
f6
The knight covers h5, so the queen can't go there, and it stands on the f-file between f3 and f7.
On 5.
b3: 5...
d4
The knight attacks the queen. After 6.xf7+
e7 7.
c4 b5, White loses the bishop.
Castle early
Once you have castled, the rook on f8 defends f7 as well.
Chase the queen
An early queen is a target. With moves like ...g6 you drive her away while you develop. Just check first that f7 is safe.
The Fried Liver Attack goes after f7 as well, with a knight sacrifice. To train your eye for short mates, try the Mate in 2 puzzles.