As soon as a miner finds a solution and a majority of other miners confirm it, this winning block is accepted by the network as the “official” block for those particular transactions. The official block is then added to previous blocks, creating an ever-lengthening chain of blocks, called the “blockchain,” that serves as a master ledger for all bitcoin transactions. (Most cryptocurrencies have their own blockchain.) And, importantly, the winning miner is rewarded with brand-new bitcoins (when Carlson got started, in mid-2012, the reward was 50 bitcoins) and all the processing fees. The network then moves on to the next batch of payments and the process repeats—and, in theory, will keep repeating, once every 10 minutes or so, until miners mine all 21 million of the bitcoins programmed into the system.
The code that makes bitcoin mining possible is completely open-source, and developed by volunteers. But the force that really makes the entire machine go is pure capitalistic competition. Every miner right now is racing to solve the same block simultaneously, but only the winner will get the prize. In a sense, everybody else was just burning electricity. Yet their presence in the network is critical.

In January 2009, the bitcoin network was created when Nakamoto mined the first block of the chain, known as the genesis block.[18][19] Embedded in the coinbase of this block was the following text: "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks."[10] This note has been interpreted as both a timestamp and a comment on the instability caused by fractional-reserve banking.[20]:18