The queen alone builds a shrinking box around the king; your own king only arrives for the final blow.
The queen is the one piece that can restrict a king all by herself. Place her a knight's move away from the enemy king and he loses most of his squares at once. Every time he steps back, follow with the queen, keeping that knight's-move distance, and the box shrinks rank by rank until he is pinned to the edge.