Mate with the queen is lesson 1 of 7 in Endgame 1: Basic mates and running pawns, an endgame course suited to players rated around 600 (beginners). King and queen against a lone king is the first mate every player must own. The queen does the boxing and your king delivers the support; together they drive the enemy king to an edge and mate it there. Two habits keep you safe: keep the queen a knight's-jump from the enemy king so it can never be captured or give stalemate, and always march your own king up before the final blow. It has 6 interactive exercises: 6 calculated lines from real positions. You play every move on a board and get feedback straight away. The lesson is free.
What this lesson explains
The method never changes. First the queen fences the lone king toward an edge, shrinking its cage move by move. Then you walk your own king up until it stands a knight's move from the enemy king, guarding the mating square. Only then does the queen step in to deliver mate along the edge. Two warnings decide the whole ending: never place the queen on a square next to the lone king unless your king guards it, or the king simply captures the queen; and never take away the lone king's last free square unless you are giving check, or it is stalemate and only a draw.
What you practise
White to move: the kings stand close and the enemy king is boxed in the corner. Finish the mate.
Black to move: bring the king one step closer, then mate.
White to move: the enemy king is pinned to the corner. Deliver mate.
Black to move: box the king to the edge and mate.
White to move: trap the cornered king and mate it.
Black to move: your king is close and the enemy king is cornered. Mate it.
Worked examples
White to move: the kings stand close and the enemy king is boxed in the corner. Finish the mate. The queen swung to the back rank and mated the cornered king, while your own king covered every flight square. That is the whole technique in miniature: king up close, then the queen strikes the edge.
Black to move: bring the king one step closer, then mate. The king stepped up to take away the flight squares, and only then did the queen mate along the edge. Patience with the king is what makes the queen's mate possible.