
Mining is what makes blockchains like bitcoin function, allowing it to validate transactions and mint new coins. It requires specialized hardware that can be purchased or rented from cloud mining services.
Bitcoin mining uses a massive amount of energy, on par with the electricity consumption of many midsize countries. A better option is staking, which is cheaper and less energy-consuming than mining.