In Minesweeper, the squares you click will reveal either a number or a mine. The numbers tell you exactly how many mines are adjacent to that square, counting all eight directions including diagonals. By cross-referencing the numbers from several open squares, you can deduce where the mines must be.
For example, imagine you've uncovered this pattern in a corner:
1 | 1 | _ |
1 | _ | _ |
_ | _ | _ |
The center square has to contain a mine, because all three of those 1s are pointing to it. That would resolve into something like this:
1 | 1 | x |
1 | X | x |
x | x | _ |
Here, the x's mark squares where a mine could be, and the X marks the spot where the overlapping clues all agree a mine must sit. With practice, this kind of logical deduction becomes second nature.