Bitcoin mining works as computers work to solve cryptographic puzzles. The first miner to solve the puzzle wins the chance to create the next bitcoin block for which they are rewarded newly-minted BTC.