Treating a being as an end in itself means respecting the value of what makes it such an end. After we see that this value resides in rational nature, we see it implies that, at least in general, rational beings should not be subjected to deception or coercion. Instead, we should seek to harmonize our strivings with those of other rational beings toward their ends.
Kantian Ethics (2008) - Ch. 5. Humanity