The 8-queens puzzle involves placing 8 queens on an 8x8 chessboard such that no two queens threaten each other, defined by their ability to move vertically, horizontally, or diagonally. A recursive algorithm is used to find a solution, by checking each row and column for valid placements, backtracking when necessary. The process involves queens attempting to find safe positions while also allowing neighboring queens to adjust their placements if needed.