A categorical imperative would be one which represented an action as objectively necessary in itself, without reference to any other purpose.
Immanuel KantAct in such a way that you treat humanity, whether in your own person or in the person of any other, never merely as a means to an end, but always at the same time as an end.
Immanuel Kant[S]uppose the mind of [a] friend of humanity were clouded over with his own grief, extinguishing all sympathetic participation in the fate of others; he still has the resources to be beneficent to those suffering distress, but the distress of others does not touch him because he is sufficiently busy with his own; and now, where no inclination any longer stimulates him to it, he tears himself out of his deadly insensibility and does the action without any inclination, solely from duty.
Immanuel Kant