Castling during the endgame Are there any famous games where castling occurred during the endgame?
The game Lasker - Thomas, Lasker could have ended with a castling checkmate, but instead he played “18.Kd2#.” Some versions of that game I've seen may have ended with “18.O-O-O#.”

[Title "Edward Lasker-George Alan Thomas, London, Casual Game, 10/29/19"]
[FEN ""]

1. d4 e6 2. Nf3 f5 3. Nc3 Nf6 4. Bg5 Be7 5. Bxf6 Bxf6 6. e4 fxe4 7. Nxe4 b6 8. Ne5 O-O 9. Bd3 Bb7 10. Qh5 Qe7 11. Qxh7+ Kxh7 12. Nxf6+ Kh6 13. Neg4+ Kg5 14. h4+ Kf4 15. g3+ Kf3 16. Be2+ Kg2 17. Rh2+ Kg1 18. Kd2#


Was this an endgame? White did not have his queen on the board, and it was definitely the end of that game.