Treaty of Armens
The Treaty of Armens was established between the Sheliak Corporate and the United Federation of Planets. It contained half a million words and took 372 Federation legal experts to draft. The treaty ceded several class H planets from the Federation to the Sheliak.

A Federation colony of Humans was established on planet Tau Cygna V in the 2270s, despite that planet having been ceded to the Sheliak. In 2366 the Sheliak demanded the colony be removed, intending to settle the planet themselves. If that was not done, they intended to "eradicate the Human infestation".

When the colony was discovered to be much larger than anticipated with a population of 15,253, Captain Jean-Luc Picard tried to negotiate a three week delay so the colonists could be removed. When the Sheliak refused to compromise, Picard resorted to using a clause in the treaty which gave him the right to ask for third-party arbitration of the dispute. As the petitioner had the right to choose the adjudicator, he selected the Grizzelas, a species who at the time were six months away from awakening from their hibernation cycle. Stunned at being outmaneuvered by the Federation, the Sheliak agreed to the original three week proposal. ()

Selected excerpts 
 Section 133, paragraph 77: Notes the ceding of Tau Cygna V to the Sheliak Corporate.
 Paragraph 653, subparagraph 9: Grants the right of one party to call for consultation with the other.
 Section 501, paragraph 716, subparagraph 5: "Unwanted lifeforms inhabiting H-class worlds may be removed at the discretion of the Sheliak Corporate."
 Paragraph 1290: Grants right to request third-party arbitration of dispute.
 Paragraph 1290, subsection D3: Grants right to request the particular organization or civilization for the arbitration.

Background information
The text of the treaty as it appears on-screen is only clearly visible within the high-definition and Blu-ray releases. The text as displayed on-screen in many cases does not appear to be the text of the treaty itself, but instead background information or gags such as "You might think that this is incredibly clever stuff. Boy are you wrong." and "Rick is initially getting a  and  reference into the text. You know, the two cute girls with the big guns. We might also mention Akira, Ranma Nibunnoichi, Urusei Yatsura, Rhea Gall Force and a few other animated films. The Federation at this point seems more tangled up in paperwork than the Iran-Contra Scandal business. We can do search-and-replace. Come to think about it, that's what the Shellac [sic] want do with the colony on the planet. This section deals with the right of each party to confer with the other in the event that something screwy happens with the treaty."

de:Vertrag von Armens
nl:Verdrag van Armens
Armens