The endgame (or ending) is the final stage of a chess game which occurs after the middlegame. It begins when few pieces are left on the board.