In Groundwork of the Metaphysics of Morals (1785), Immanuel Kant introduces us to the categorical imperative. The imperative is:
Act only according to that maxim by which you can at the same time will that it should become a universal law.
Kant views this as an objective, rational principle that must always be followed. A simple example is