Your geographic location determines the legal status of bitcoin mining in your area.
The activity may threaten the dominance of fiat currencies and the central bank's control over financial markets, making it illegal in some places.