In video published on Monday, YouTube user Mike Bartel captured footage of a “juvenile” Great White shark that had beached itself in Cape Cod.

The footage shows the shark writhing around in the sand about 15 feet from the water.

It was “trying to catch seagulls off Chatham, Massachusetts,” according to Bartel, and had become beach as the tide went out.

The video shows someone — Bartel calls him the harbor master — tying a rope around the shark’s tail and using a Harbor Patrol boat to drag it back into the water.

The onlookers cheered as the shark — which appeared to be 6-8 feet in length — was dragged off the beach.

The edited footage shows the shark being tagged by a “state shark scientist” as it laid in shallow water.

Harbormaster Stuart Smith reports it took about an hour, according to Fox 2.

“Thanks to the harbor master and beach-goers, this shark was saved,” Bartel says.

Numerous shark attacks have been reported off North Carolina beaches this summer.

So while resident there are desperately trying to get rid of sharks, in Massachusetts, they’re throwing them back in.