To fuck up immensely while in an advantageous position.
I was playing chess last night, and this guy was about to win! Then he moved the queen and lost in one turn.