Bitcoins and cryptocurrencies are created through a process called mining. Anyone can mine for most cryptocurrencies, but it is a difficult and time-consuming process.
By mining, you can earn cryptocurrency without having to put down money for it. Bitcoin miners receive Bitcoin as a reward for completing "blocks" of verified transactions which are added to the blockchain
Mining involves teams of computers solving mathematical problems. When the problem is solved, tokens for whichever cryptocurrency was being worked on are created, for example a bitcoin, and the computer that got the solution gets the new token.
Mining is also what gives cryptocurrencies their security. The mathematical problems that are being solved are connected to the blockchain, the record of every single token in a cryptocurrency. The latest mathematical problem doesn’t just create more tokens, it also checks the latest transactions at the same time.