Backtracking is a general algorithmic technique that incrementally builds candidates for a solution and abandons a candidate (backtracks) as soon as it determines that the candidate cannot be extended to a valid complete solution. It is a refined form of exhaustive search that prunes the search tree dramatically.
The core idea is simple: try to place a queen in a column, check whether the placement is safe, proceed to the next row if it is, and undo the placement (backtrack) if no safe column exists in the current row. This systematic trial-and-error approach is guaranteed to find all solutions — for the 8x8 board that is exactly 92 distinct solutions.
Backtracking is used throughout computer science: constraint satisfaction, Sudoku solvers, maze navigation, and the N queens problem algorithm in AI courses all rely on this technique. Understanding it through the 8 queens problem gives you a foundation applicable to hundreds of interview problems.