GPU mining is legal in most countries. However, it's essential to comply with local regulations and ensure that your mining activities do not infringe any laws.