Chess Opening Theory/1. e4/1...e5/2. Nf3/2...Nc6/3. Bb5/3...a6/4. Ba4/4...Nf6/5. O-O/5...Nxe4/6. d4/6...exd4/7. Re1/7...d5/8. Nxd4/8...Bd6/9. Nxc6/9...Bxh2/10. Kh1/10...Qh4/11. Rxe4/11...dxe4

=Ruy Lopez, Riga Variation, Main Line=

Black takes the rook with the pawn, correctly. Now white's next move is forced: 12. Qd8+. This is the only move white has that will divert the black queen from the attack. Note that 12...Qxd8 is literally black's only legal move. White follows up thereafter with 13. Nxd8.