The artist behind the Pepe the Frog character has forced the author of a controversial book, which some believe depicts the cartoon as a hateful Islamophobe, to withdraw it from sale, demanding all the profits go to the largest Muslim advocacy group in the US.

Matt Furie, who came up with Pepe in the early 2000s as part of a comic series, exercised his intellectual property rights over the cartoon to stop the distribution of Eric Hauser’s book, 'The Adventures of Pepe and Pede.'

The children’s book “espoused racist, Islamophobic and hate-filled themes, included allusions to the alt-right movement and was deliberately targeted at children,” according to the statement, released by the WilmerHale law firm which is representing Furie.

Pepe was intended to be a “chill frog-dude” but was hijacked by the alt-right online and turned into a hate symbol, his creator said.

Threatened with legal action, Hauser admitted copyright violation and agreed to withdraw his book from sale.

Along with the green frog, the book features a centipede, named Pede, which is a term Trump supporters called each other in a president-themed Reddit board. Together, Pepe and Pede confront a bearded alligator villain, Alkah, amidst the setting of Wishington farm.

They take down Alkah & free his minions from their muddy chains. "With law and order now restored, this land was great again". pic.twitter.com/lerB24j2rN — THE CONNET (@THEAlleyeceeing) August 19, 2017

As the book went public early August, Hauser lost his job as an assistant principal at a Texas middle school.

“Under US copyright law, Furie is entitled to all of the profits that Hauser made by selling his infringing book,” the lawyers’ statement says, adding that Pepe’s creator insisted all the money go to the Council on American-Islamic Relations, the largest Muslim civil rights and advocacy organization in the US.

“Furie does not want money made by peddling hateful themes to children,” WilmerHale lawyer, Louis Tompros told Motherboard.

'Gone with the Wind' – Latest effort to ‘rewrite American history’ hits Memphis theater

Although the sum is relatively modest, $1,521.54, this action shows that Furie “will aggressively enforce his intellectual property, using legal action if necessary, to end the misappropriation of Pepe the Frog,” that transformed him into a hate mascot, Tompros said.

Eric Hauser assistant principal at Rodriguez Middle School in Denton, Texas wrote an alt right children's book. pic.twitter.com/NVG2pRPLWN — THE CONNET (@THEAlleyeceeing) August 19, 2017

In 2016, Pepe the Frog was branded as a hate symbol by the Anti-Defamation League (ADL), when Pepe memes flooded the internet, gaining popularity particularly among white supremacists during the US presidential campaign.

The new-found fame subsequently prompted Furie to kill off the frog in a comic strip. Later, though, the artist launched a kickstarter to “resurrect” Pepe in a new comic book to reclaim his status “as a universal symbol for peace, love, and acceptance” and “to feel good again.”