A dead humpback whale washed up at a New Jersey marina over the weekend and attracted a flock of onlookers to the area.

The 25-foot-long juvenile whale was discovered floating underneath a dock at the Grassy Sound Marina in North Wildwood, New Jersey, on Sunday morning, the marina wrote in a Facebook post. The marina said a terrapin was found feasting on the massive mammal.

Images of the floating whale carcass went viral and onlookers arrived at the marina to catch a glimpse of the giant sea creature.

"It’s been quite the tourist attraction today," marina owner Jim Mooers told FOX29 Philadelphia.

SEA LIONS CHASE AWAY BEACHGOERS IN SAN DIEGO, VIRAL VIDEO SHOWS

Marine police said they had reports of a dead whale offshore a week ago and believe it could be the same one that washed into the marina dock, according to Grassy Sound Marina.

Humpback whale in New Jersey

The 25-foot-long carcass of a juvenile humpback whale washed up in North Wildwood, New Jersey, over the weekend. Officials believe the whale was dead for some time. (Grassy Sound Marina via FOX29 Philadelphia)

Mooers said that he’s never seen such a sight at the marina.

"We’ve had a lot of dead animals wash up here, you know, otters and raccoons, things like that over the years," Mooers said. "But never a dead whale. We’ve had dead people wash up, but never a whale."

It was unclear how or when the whale died.

CLICK HERE TO GET THE FOX NEWS APP

The Marine Mammal Stranding Center said the whale carcass was taken to a marshy area so it could decompose, the station reported.