COPENHAGEN, Denmark – Saying it needed to prevent inbreeding, the Copenhagen Zoo killed a 2-year-old giraffe and fed its remains to lions as visitors watched, ignoring a petition signed by thousands and offers from other zoos and a private individual to save the animal.

Marius, a healthy male, was put down Sunday using a bolt pistol, said zoo spokesman Tobias Stenbaek Bro. Visitors, including children, were invited to watch while the giraffe was then skinned and fed to the lions.

Marius' plight triggered a wave of online protests and renewed debate about the conditions of zoo animals. Before the giraffe was killed, an online petition to save it had received more than 20,000 signatures.

But the public feeding of Marius' remains to the lions was popular at Copenhagen Zoo. Stenbaek Bro said it allowed parents to decide whether their children should watch what the zoo regards as an important display of scientific knowledge about animals.

"I'm actually proud because I think we have given children a huge understanding of the anatomy of a giraffe that they wouldn't have had from watching a giraffe in a photo," Stenbaek Bro said.

He said the zoo, which now has seven giraffes left, followed the recommendation of the European Association of Zoos and Aquaria to put down Marius because there already were a lot of giraffes with similar genes in the organization's breeding program.

The Amsterdam-based EAZA has 347 members, including many large zoos in European capitals, and works to conserve global biodiversity and achieve the highest standards of care and breeding for animals.

Stenbaek Bro said his zoo had turned down offers from other ones to take Marius and an offer from a private individual who wanted to buy the giraffe for $680,000.

Bengt Holst, Copenhagen Zoo's scientific director, said it turned down an offer from Yorkshire Wildlife Park in Britain, which is a member of EAZA, because Marius' older brother lives there and the park's space could be better used by a "genetically more valuable giraffe."

"I know the giraffe is a nice-looking animal, but I don't think there would have been such an outrage if it had been an antelope, and I don't think anyone would have lifted an eyebrow if it was a pig," said Holst.

Yorkshire Wildlife Park said it called the zoo on Saturday with a last-minute offer to house Marius in a new giraffe house with room for an extra male. It said it was saddened by the killing of Marius, but "without knowing the full details it would be inappropriate to comment further."

EAZA said it supported the zoo's decision to "humanely put the animal down and believes strongly in the need for genetic and demographic management within animals in human care."

Elisa Allen, spokeswoman for People for the Ethical Treatment of Animals in the U.K., said Marius' case should serve as a wake-up call for anyone who "still harbors the illusion that zoos serve any purpose beyond incarcerating intelligent animals for profit."