The official website for The Settlers of Catan

Question about Domaine End of the Game - When the last card is drawn from the action deck, the players – one by one – still play their cards. If the king token is reached during this phase, does the game end immediately or do the players finish playing their cards?

Answer

In this case, the game ends immediately.