BOSTON (AP) — A young humpback whale that was tangled up in fishing gear off Boston for several days has been freed.

The Center for Coastal Studies says its Marine Animal Entanglement Response team freed the whale Sunday with help from state environmental police and the Coast Guard.

READ MORE: Multiple Chances For Snow Over Next Several Days

The whale was tangled in fishing gear. (Photo from Center for Coastal Studies, NOAA permit #18786.)

The whale was tangled in fishing gear. (Photo from Center for Coastal Studies, NOAA permit #18786.)

READ MORE: Boston Police Subdue Knife-Wielding Man With Bean Bag Round On Mass Ave.

The Provincetown-based organization says fishermen discovered the 30-foot whale Thursday caught in fishing gear but rescuers had been unable to get to it safely in rough waters.

Images provided by the center showed the whale’s tail was caught in a rope attached to fishing gear on the ocean floor.

MORE NEWS: Mac Jones Makes First Instagram Post Since August, Says Patriots Career Is Just Getting Started

Rescuers say the whale is doing well but will need time to heal. They followed it for about two hours as it slowly left the area.