The legality of crypto mining is entirely dependent on your geographical location. The concept of Bitcoin has the potential to undermine fiat currency dominance and government control over financial markets. As a result, Bitcoin is completely illegal in some jurisdictions.
Bitcoin ownership and mining are legal in a growing number of countries. Algeria, Egypt, Morocco, Bolivia, Ecuador, Nepal, and Pakistan were among the countries where it was illegal, according to a 2018 report. Other countries that have banned Bitcoin mining since 2018 include Bangladesh, China, the Dominican Republic, North Macedonia, Qatar, and Vietnam.