The Metaphysics of Morals by Immanuel Kant Chapter 2 Page 80

rational beings as ends in themselves, and also the special ends which each may propose to himself), that is to say, we can conceive a kingdom of ends, which on the preceding principles is possible.

For all rational beings come under the law that each of them must treat itself and all others never merely as means, but in every case at the same time as ends in themselves. Hence results a systematic union of rational being by common objective laws, i.e., a kingdom which may be called a kingdom of ends, since what these laws have in view is just the relation of these beings to one another as ends and means.

It is certainly only an ideal.

A rational being belongs as a member to the kingdom of ends when, although giving universal laws in it, he is also