Caliph's personality quite literally comes in two parts. The head and the body.
His head is cold, calculating and extremly malevolent. Without the compassion or emotions that come from his heart he only thinks logically.
His body is benevolent and without his evil head full of compassion, making it a beloved leader.
Aladdin: The Series
Caliph Kapok desires to have ultimate control over his kind-hearted body. He managed to behead Aladdin once- resulting in some tension as Aladdin's cooly rational head initially disdained being re-attached to his impulsively romantic body, although the two achieved reconciliation after the body saved the head from falling into the fire-, only to be thwarted by his own game in the end when Aladdin used a mirror to reflect his power back at him.