Mining usually means expending compute (and energy) to produce new coins or fees on a proof-of-work network.
Many regimes treat mined coins as income at fair market value when received; later sale creates a separate capital gain/loss from that basis. Business mining may also trigger VAT, expense deductions, or commercial accounting.
Educational definition — not tax advice. Rules vary by country.