In short Using computing power to compete for the right to add a block to a Proof of Work chain, in exchange for newly issued coins and fees.
Mining is how new bitcoin enters circulation and how the network is secured. Profitability depends on the coin price, electricity cost and network difficulty.