Each number tells you how many mines are touching that square.
The count includes all eight neighbouring tiles — horizontally, vertically and diagonally. A 1 means exactly one of those eight is a mine; a 4 means four of them are.
Once you get used to reading the overlaps between numbers, most of the board becomes solvable by logic alone, with guessing only needed in the genuinely ambiguous spots.