Currently, Bitcoin mining is legal in the United States and the majority of other countries. You may want to investigate the local laws in your area, though.