Bitcoin mining legality varies by country. In most countries, it's legal, but some nations have banned or restricted it. It's essential to research local regulations and consult with legal counsel in your jurisdiction before starting any mining operations.