Mining is basically transaction verification. When a block of transactions has been validated, the person mining receives a Bitcoin.