BANGKOK — Some 80 pieces of plastic rubbish weighing 17 pounds were found in the stomach of a whale that died in Thailand after a five-day effort to save it, a marine official said on Sunday.

The pilot whale was discovered on Monday in a canal in the southern province of Songkhla and received treatment from a team of veterinarians.

The whale spit out five plastic bags on Friday and later died, the Marine and Coastal Resources Department said on its website.

An autopsy found another 80 bags and other plastic items weighing more than 17 pounds (8 kg) in the whale’s stomach.

A government marine veterinarian is being helped by volunteers to remove plastics from the stomach of dead male pilot whale at the Marine and Coastal Resource Research and Development Center in Songkla province, Thailand, June 1, 2018. ThaiWhales / AFP - Getty Images

“This plastic rubbish made the whale sick and unable to hunt for food,” the department said.

Jatuporn Buruspat, head of the department, said the whale probably thought the floating plastic bags were food.

Pilot whales mainly feed on squid, but are known to eat octopus and small fish when squid are not available, according to the American Cetacean Society, a whale conservation group.

Jatuporn said his department planned to raise public awareness of the problem on World Oceans Day on June 8.

“We will use the whale case and invite all sectors to show their intentions on how to reduce the use of plastic in Thailand,” he told Reuters.

Thai Marine Biologist officials rescue an ailing and immobile short-finned pilot whale at a canal in Songkhla province, southern Thailand, May 30, 2018. EPA

Thais use huge numbers of plastic bags but authorities have launched campaigns to try to encourage people to use fewer and to introduce reusable bags.

Globally, eight million tons of plastic — bottles, packaging and other waste — are dumped into the ocean every year, killing marine life and entering the human food chain, the United Nations Environment Programme said in December.