CAPE COD (CBS) — A young humpback whale was freed from a complex entanglement line Saturday afternoon in Cape Cod Bay.

On their Facebook page, the Center for Coastal Studies’ says their marine animal entanglement response team disentangled the whale after it was reported to the US Coast Guard by recreational boaters off Wood End in Provincetown.

READ MORE: Man killed during police shooting at Space Force Station in New Hampshire

A young humpback whale was freed from an entanglement Saturday at Cape Cod Bay. (Photo credit: Center for Coastal Studies/Facebook)

A young humpback whale was freed from an entanglement Saturday at Cape Cod Bay. (Image credit: Center for Coastal Studies)

READ MORE: It sounds like Xander Bogaerts would be open to in-season extension talks with Red Sox

Officials say a line attached to gear on the ocean floor was wrapped around the whale’s mouth and flippers. While the “extremely agitated” animal could still dive, it was unable to free itself, officials said.

It took nearly two hours for the team to free the whale.

MORE NEWS: Boston area gets a glimpse of 'super flower blood moon' lunar eclipse

The Coast Guard and Dolphin Fleet helped out with the response.