We the intelligent life-forms of the United Federation of Planets determined:
To save succeeding generations from the scourge of intra-galactic war which has brought untold horror and suffering to our planetary social systems, and
To reaffirm faith in the fundamental intelligent life-form rights, in the dignity and worth of the intelligent life-form person, to the equal rights of all genders, all preferences*, and of planetary social systems large and small, and
To establish conditions under which justice and mutual respect for the obligations arising from treaties and other sources of interplanetary law can be maintained, and
To promote social progress and better standards of life in larger freedom,
And to these ends to practice benevolent tolerance and live together in peace with one another as Good Neighbours, and:
To unite our strength to maintain intra-galactic peace and security, and
To ensure by the acceptance of principles and the institution of methods that armed force shall not be used except in the common defense, and1
To employ intra-galactic machinery for the promotion of the economic and social advancement of all intelligent life-forms,
Have resolved to combine our efforts to accomplish these aims.
Accordingly, the respective social systems, through representatives assembled on the planet Babel, who have exhibited their full powers to be in good and due form, have agreed to these Articles of Federation of the United Federation of Planets, and do hereby establish an interplanetary organization to be known as the United Federation of Planets.
So opens the the Constitution of the United Federation of Planets.
Starfleet, and its divisions
*This is an alteration to the original text, published in the Starfleet Technical Manual. I think this is more representative of the intent of the document, and of the creators of Star Trek.