Bitcoin Mining
Bitcoin mining is the proof-of-work process in which specialised computers compete to add the next block of transactions to Bitcoin's blockchain. Winners earn newly issued bitcoin plus transaction fees, and their work makes past transactions very hard to alter.
Miners collect pending transactions, bundle them into a candidate block, and repeatedly run its header through the SHA-256 hash function, changing a value called the nonce on each try. The goal is a hash below a target set by the network's difficulty. There is no shortcut: success comes from brute-force guessing, so a miner's chance of winning roughly matches its share of total hash rate. Difficulty adjusts so that a block is found about every ten minutes on average. The winner broadcasts the block, nodes verify it, and the miner collects the block subsidy, which halves roughly every four years, plus the fees from the included transactions.
For users, mining is what turns a broadcast payment into a confirmed one. A transaction sent from a wallet waits in the mempool until a miner includes it, and miners usually favour higher fees. Each later block stacked on top adds another confirmation and makes reversal harder. Rewriting history would require out-hashing the rest of the network, which is the basis of a 51 percent attack. Even somewhat less than half the hashing power gives an attacker a meaningful chance.
A common misconception is that miners control Bitcoin. They choose and order transactions, but nodes reject blocks that break the rules, so a miner cannot spend other people's coins. Mining on an ordinary computer is no longer practical. It requires ASIC hardware and cheap electricity. Many miners join pools, trading the large but irregular payouts of solo mining for smaller, steadier ones.