This monkey business is finally settled.
PETA David Slater photographer Naruta macau monkey photo selfie copyright

A lawsuit that questioned who legally owned the copyright to a selfie photograph taken by a monkey was settled in a federal court on Monday.

Lawyers for the animal rights group, People for the Ethical Treatment of Animals (PETA), asked the court to dismiss the case in lieu of British wildlife photographer David Slater’s agreement to donate 25 percent of future revenue gained from the photograph to charities dedicated to helping crested macaques.

That's the kind of monkey that took the famouse selfie with Slater’s camera.

“PETA and David Slater agree that this case raises important, cutting-edge issues about expanding legal rights for nonhuman animals, a goal that they both support, and they will continue their respective work to achieve this goal,” said a joint statement on PETA’s website.

PETA sued Slater on behalf of the monkey, whose name is Naruto, in 2015.

Naruto lives in a wildlife reserve on the Indonesian island of Sulawesi, and took the selfies in 2011 with Slater’s camera that was set up in the reserve. Slater published a book with the photos.

Previously, a lower court ruled in Slater’s favor, but the San Francisco-based 9th U.S. Circuit Court of Appeals was considering PETA's appeal, according to CBS News.