The categorical imperative, created by the philosopher Immanuel Kant, is a concept to help us better understand basic morality in a simple, practical way. This imperative says simply that:
We should all behave in such a way that, if our behavior were made into a universal code of behavior, it would result in a good world.
This concept is obviously just a version of the golden rule:
Treat others as you want to be treated.
The categorical imperative is also almost verbatim of what your mother often told you when, as a child, you behaved badly:
“What if everyone acted like you do? Would that be a good world? Is that what you want? “