Bitcoin’s popularity has undeniably been its number one advantage over the numerous other cryptocurrencies. By gaining a large number of adopters and users, Bitcoin has achieved a network effect that attracts even more users. Users who would otherwise be more apprehensive investing in a relatively unknown and unproven digital currency are reassured by Bitcoin’s performance over time, its growing community, and the fact that people they know are adopting cryptos.
Anyone who can run the mining program on the specially designed hardware can participate in mining. Over the years, many computer hardware manufacturers have designed specialized Bitcoin mining hardware that can process transactions and build blocks much more quickly and efficiently than regular computers, since the faster the hardware can guess at random, the higher its chances of solving the puzzle, therefore mining a block.

Though transaction fees are optional, miners can choose which transactions to process and prioritize those that pay higher fees.[67] Miners may choose transactions based on the fee paid relative to their storage size, not the absolute amount of money paid as a fee. These fees are generally measured in satoshis per byte (sat/b). The size of transactions is dependent on the number of inputs used to create the transaction, and the number of outputs.[3]:ch. 8
Mining is the process of spending computation power to secure Bitcoin transactions against reversal and introducing new Bitcoins to the system. Technically speaking, mining is the calculation of a hash of the block header, which includes among other things a reference to the previous block, a hash of a set of transactions and a nonce (an arbitrary number used just once for authentication purposes).
Although it is possible to handle bitcoins individually, it would be unwieldy to require a separate transaction for every bitcoin in a transaction. Transactions are therefore allowed to contain multiple inputs and outputs, allowing bitcoins to be split and combined. Common transactions will have either a single input from a larger previous transaction or multiple inputs combining smaller amounts, and one or two outputs: one for the payment, and one returning the change, if any, to the sender. Any difference between the total input and output amounts of a transaction goes to miners as a transaction fee.[2]

In addition to being the means of generating new bitcoin, bitcoin mining creates the blockchain that verifies bitcoin transactions. The block reward is gleaned by placing a new block on the blockchain, which acts as an advancing public ledger of verified transaction. This is an essential function for bitcoin's operation as it enables the currency to be safely and predictably created without the centralized regulation in the form of a bank or federal government. Blocks must to be a validated by a proof-of-work (Bitcoin uses Hashcash), which can only be obtained by expending a great deal of processing power. Once a block is obtained a message is broadcast to the mining network and verified by all recipients. 
The trick, though, was finding a location where you could put all that cheap power to work. You needed an existing building, because in those days, when bitcoin was trading for just a few dollars, no one could afford to build something new. You needed space for a few hundred high-speed computer servers, and also for the heavy-duty cooling system to keep them from melting down as they churned out the trillions of calculations necessary to mine bitcoin. Above all, you needed a location that could handle a lot of electricity—a quarter of a megawatt, maybe, or even a half a megawatt, enough to light up a couple hundred homes.
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